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/afs/mntpt.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/afs/mntpt.c')
-rw-r--r-- | fs/afs/mntpt.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/afs/mntpt.c b/fs/afs/mntpt.c index 938c5ab06d5a..ccd0b212e82a 100644 --- a/fs/afs/mntpt.c +++ b/fs/afs/mntpt.c | |||
@@ -134,7 +134,7 @@ static struct vfsmount *afs_mntpt_do_automount(struct dentry *mntpt) | |||
134 | 134 | ||
135 | _enter("{%pd}", mntpt); | 135 | _enter("{%pd}", mntpt); |
136 | 136 | ||
137 | BUG_ON(!mntpt->d_inode); | 137 | BUG_ON(!d_inode(mntpt)); |
138 | 138 | ||
139 | ret = -ENOMEM; | 139 | ret = -ENOMEM; |
140 | devname = (char *) get_zeroed_page(GFP_KERNEL); | 140 | devname = (char *) get_zeroed_page(GFP_KERNEL); |
@@ -145,7 +145,7 @@ static struct vfsmount *afs_mntpt_do_automount(struct dentry *mntpt) | |||
145 | if (!options) | 145 | if (!options) |
146 | goto error_no_options; | 146 | goto error_no_options; |
147 | 147 | ||
148 | vnode = AFS_FS_I(mntpt->d_inode); | 148 | vnode = AFS_FS_I(d_inode(mntpt)); |
149 | if (test_bit(AFS_VNODE_PSEUDODIR, &vnode->flags)) { | 149 | if (test_bit(AFS_VNODE_PSEUDODIR, &vnode->flags)) { |
150 | /* if the directory is a pseudo directory, use the d_name */ | 150 | /* if the directory is a pseudo directory, use the d_name */ |
151 | static const char afs_root_cell[] = ":root.cell."; | 151 | static const char afs_root_cell[] = ":root.cell."; |
@@ -169,14 +169,14 @@ static struct vfsmount *afs_mntpt_do_automount(struct dentry *mntpt) | |||
169 | } | 169 | } |
170 | } else { | 170 | } else { |
171 | /* read the contents of the AFS special symlink */ | 171 | /* read the contents of the AFS special symlink */ |
172 | loff_t size = i_size_read(mntpt->d_inode); | 172 | loff_t size = i_size_read(d_inode(mntpt)); |
173 | char *buf; | 173 | char *buf; |
174 | 174 | ||
175 | ret = -EINVAL; | 175 | ret = -EINVAL; |
176 | if (size > PAGE_SIZE - 1) | 176 | if (size > PAGE_SIZE - 1) |
177 | goto error_no_page; | 177 | goto error_no_page; |
178 | 178 | ||
179 | page = read_mapping_page(mntpt->d_inode->i_mapping, 0, NULL); | 179 | page = read_mapping_page(d_inode(mntpt)->i_mapping, 0, NULL); |
180 | if (IS_ERR(page)) { | 180 | if (IS_ERR(page)) { |
181 | ret = PTR_ERR(page); | 181 | ret = PTR_ERR(page); |
182 | goto error_no_page; | 182 | goto error_no_page; |