diff options
Diffstat (limited to 'fs/proc/root.c')
-rw-r--r-- | fs/proc/root.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/proc/root.c b/fs/proc/root.c index e74ac9f1a2c0..b7fa4bfe896a 100644 --- a/fs/proc/root.c +++ b/fs/proc/root.c | |||
@@ -195,7 +195,7 @@ void __init proc_root_init(void) | |||
195 | static int proc_root_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat | 195 | static int proc_root_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat |
196 | ) | 196 | ) |
197 | { | 197 | { |
198 | generic_fillattr(dentry->d_inode, stat); | 198 | generic_fillattr(d_inode(dentry), stat); |
199 | stat->nlink = proc_root.nlink + nr_processes(); | 199 | stat->nlink = proc_root.nlink + nr_processes(); |
200 | return 0; | 200 | return 0; |
201 | } | 201 | } |