diff options
Diffstat (limited to 'fs/proc/inode.c')
-rw-r--r-- | fs/proc/inode.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/fs/proc/inode.c b/fs/proc/inode.c index 67273b3ba..7b571398a 100644 --- a/fs/proc/inode.c +++ b/fs/proc/inode.c @@ -52,16 +52,6 @@ void de_put(struct proc_dir_entry *de) } } -static void proc_put_inode(struct inode *inode) -{ - /* - * Kill off unused inodes ... VFS will unhash and - * delete the inode if we set i_nlink to zero. - */ - if (inode->i_count == 1) - inode->i_nlink = 0; -} - /* * Decrement the use count of the proc_dir_entry. */ @@ -102,7 +92,7 @@ static int proc_statfs(struct super_block *sb, struct statfs *buf) static struct super_operations proc_sops = { read_inode: proc_read_inode, - put_inode: proc_put_inode, + put_inode: force_delete, delete_inode: proc_delete_inode, statfs: proc_statfs, }; |