diff options
author | David Howells <dhowells@redhat.com> | 2015-03-17 18:25:59 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2015-04-15 15:06:57 -0400 |
commit | 2b0143b5c986be1ce8408b3aadc4709e0a94429d (patch) | |
tree | 98b1dee70f3d5d9ac9309f4638e41864ddcd0952 /fs/proc/generic.c | |
parent | ce0b16ddf18df35026164fda4a642ef10c01f442 (diff) |
VFS: normal filesystems (and lustre): d_inode() annotations
that's the bulk of filesystem drivers dealing with inodes of their own
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/proc/generic.c')
-rw-r--r-- | fs/proc/generic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/proc/generic.c b/fs/proc/generic.c index be65b2082135..df6327a2b865 100644 --- a/fs/proc/generic.c +++ b/fs/proc/generic.c | |||
@@ -101,7 +101,7 @@ static bool pde_subdir_insert(struct proc_dir_entry *dir, | |||
101 | 101 | ||
102 | static int proc_notify_change(struct dentry *dentry, struct iattr *iattr) | 102 | static int proc_notify_change(struct dentry *dentry, struct iattr *iattr) |
103 | { | 103 | { |
104 | struct inode *inode = dentry->d_inode; | 104 | struct inode *inode = d_inode(dentry); |
105 | struct proc_dir_entry *de = PDE(inode); | 105 | struct proc_dir_entry *de = PDE(inode); |
106 | int error; | 106 | int error; |
107 | 107 | ||
@@ -120,7 +120,7 @@ static int proc_notify_change(struct dentry *dentry, struct iattr *iattr) | |||
120 | static int proc_getattr(struct vfsmount *mnt, struct dentry *dentry, | 120 | static int proc_getattr(struct vfsmount *mnt, struct dentry *dentry, |
121 | struct kstat *stat) | 121 | struct kstat *stat) |
122 | { | 122 | { |
123 | struct inode *inode = dentry->d_inode; | 123 | struct inode *inode = d_inode(dentry); |
124 | struct proc_dir_entry *de = PDE(inode); | 124 | struct proc_dir_entry *de = PDE(inode); |
125 | if (de && de->nlink) | 125 | if (de && de->nlink) |
126 | set_nlink(inode, de->nlink); | 126 | set_nlink(inode, de->nlink); |