diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2012-01-08 03:16:29 -0500 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2012-01-24 19:37:55 -0500 |
commit | a15e20982e2fbb06e85da584a0f150784042c17d (patch) | |
tree | 63f33957dd0d87b6654be8653661f841ce5baf1d /fs/proc/proc_sysctl.c | |
parent | 1f87f0b52b1d6581168cb80f86746bc4df918d01 (diff) |
sysctl: Make the directories have nlink == 1
I goofed when I made sysctl directories have nlink == 0.
nlink == 0 means the directory has been deleted.
nlink == 1 meands a directory does not count subdirectories.
Use the default nlink == 1 for sysctl directories.
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'fs/proc/proc_sysctl.c')
-rw-r--r-- | fs/proc/proc_sysctl.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c index 06e6f10ee8ec..f6aa75111b41 100644 --- a/fs/proc/proc_sysctl.c +++ b/fs/proc/proc_sysctl.c | |||
@@ -253,7 +253,6 @@ static struct inode *proc_sys_make_inode(struct super_block *sb, | |||
253 | inode->i_fop = &proc_sys_file_operations; | 253 | inode->i_fop = &proc_sys_file_operations; |
254 | } else { | 254 | } else { |
255 | inode->i_mode |= S_IFDIR; | 255 | inode->i_mode |= S_IFDIR; |
256 | clear_nlink(inode); | ||
257 | inode->i_op = &proc_sys_dir_operations; | 256 | inode->i_op = &proc_sys_dir_operations; |
258 | inode->i_fop = &proc_sys_dir_file_operations; | 257 | inode->i_fop = &proc_sys_dir_file_operations; |
259 | } | 258 | } |