root.c (4b4193256c8d3bc3a5397b5cd9494c2ad386317d) | root.c (0d56a4518d5eaf595a24ab2202e171330bb2ed72) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * linux/fs/proc/root.c 4 * 5 * Copyright (C) 1991, 1992 Linus Torvalds 6 * 7 * proc root directory handling functions 8 */ --- 297 unchanged lines hidden (view full) --- 306 proc_sys_init(); 307 308 register_filesystem(&proc_fs_type); 309} 310 311static int proc_root_getattr(const struct path *path, struct kstat *stat, 312 u32 request_mask, unsigned int query_flags) 313{ | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * linux/fs/proc/root.c 4 * 5 * Copyright (C) 1991, 1992 Linus Torvalds 6 * 7 * proc root directory handling functions 8 */ --- 297 unchanged lines hidden (view full) --- 306 proc_sys_init(); 307 308 register_filesystem(&proc_fs_type); 309} 310 311static int proc_root_getattr(const struct path *path, struct kstat *stat, 312 u32 request_mask, unsigned int query_flags) 313{ |
314 generic_fillattr(d_inode(path->dentry), stat); | 314 generic_fillattr(&init_user_ns, d_inode(path->dentry), stat); |
315 stat->nlink = proc_root.nlink + nr_processes(); 316 return 0; 317} 318 319static struct dentry *proc_root_lookup(struct inode * dir, struct dentry * dentry, unsigned int flags) 320{ 321 if (!proc_pid_lookup(dentry, flags)) 322 return NULL; --- 50 unchanged lines hidden --- | 315 stat->nlink = proc_root.nlink + nr_processes(); 316 return 0; 317} 318 319static struct dentry *proc_root_lookup(struct inode * dir, struct dentry * dentry, unsigned int flags) 320{ 321 if (!proc_pid_lookup(dentry, flags)) 322 return NULL; --- 50 unchanged lines hidden --- |