diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2006-02-08 14:37:40 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2006-02-18 15:54:36 -0500 |
commit | 76b6159ba094544e003a237cedcf555d82fa3bfe (patch) | |
tree | 134d104a2e1568d752a8d509cdeba86815f8f66d /fs/proc/inode.c | |
parent | e30809fde59d591809f00caa1a4c960cca5916af (diff) | |
download | linux-76b6159ba094544e003a237cedcf555d82fa3bfe.tar.bz2 |
[PATCH] fix handling of st_nlink on procfs root
1) it should use nr_processes(), not nr_threads; otherwise we are getting
very confused find(1) and friends, among other things.
2) better do that at stat() time than at every damn lookup in procfs root.
Patch had been sitting in FC4 kernels for many months now...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/proc/inode.c')
-rw-r--r-- | fs/proc/inode.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/proc/inode.c b/fs/proc/inode.c index 6573f31f1fd9..075d3e945602 100644 --- a/fs/proc/inode.c +++ b/fs/proc/inode.c @@ -204,10 +204,6 @@ int proc_fill_super(struct super_block *s, void *data, int silent) root_inode = proc_get_inode(s, PROC_ROOT_INO, &proc_root); if (!root_inode) goto out_no_root; - /* - * Fixup the root inode's nlink value - */ - root_inode->i_nlink += nr_processes(); root_inode->i_uid = 0; root_inode->i_gid = 0; s->s_root = d_alloc_root(root_inode); |