diff options
Diffstat (limited to 'fs/nfs/namespace.c')
-rw-r--r-- | fs/nfs/namespace.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/nfs/namespace.c b/fs/nfs/namespace.c index b5a0afc3ee10..c8162c660c44 100644 --- a/fs/nfs/namespace.c +++ b/fs/nfs/namespace.c | |||
@@ -139,7 +139,7 @@ EXPORT_SYMBOL_GPL(nfs_path); | |||
139 | struct vfsmount *nfs_d_automount(struct path *path) | 139 | struct vfsmount *nfs_d_automount(struct path *path) |
140 | { | 140 | { |
141 | struct vfsmount *mnt; | 141 | struct vfsmount *mnt; |
142 | struct nfs_server *server = NFS_SERVER(path->dentry->d_inode); | 142 | struct nfs_server *server = NFS_SERVER(d_inode(path->dentry)); |
143 | struct nfs_fh *fh = NULL; | 143 | struct nfs_fh *fh = NULL; |
144 | struct nfs_fattr *fattr = NULL; | 144 | struct nfs_fattr *fattr = NULL; |
145 | 145 | ||
@@ -180,16 +180,16 @@ out_nofree: | |||
180 | static int | 180 | static int |
181 | nfs_namespace_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat) | 181 | nfs_namespace_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat) |
182 | { | 182 | { |
183 | if (NFS_FH(dentry->d_inode)->size != 0) | 183 | if (NFS_FH(d_inode(dentry))->size != 0) |
184 | return nfs_getattr(mnt, dentry, stat); | 184 | return nfs_getattr(mnt, dentry, stat); |
185 | generic_fillattr(dentry->d_inode, stat); | 185 | generic_fillattr(d_inode(dentry), stat); |
186 | return 0; | 186 | return 0; |
187 | } | 187 | } |
188 | 188 | ||
189 | static int | 189 | static int |
190 | nfs_namespace_setattr(struct dentry *dentry, struct iattr *attr) | 190 | nfs_namespace_setattr(struct dentry *dentry, struct iattr *attr) |
191 | { | 191 | { |
192 | if (NFS_FH(dentry->d_inode)->size != 0) | 192 | if (NFS_FH(d_inode(dentry))->size != 0) |
193 | return nfs_setattr(dentry, attr); | 193 | return nfs_setattr(dentry, attr); |
194 | return -EACCES; | 194 | return -EACCES; |
195 | } | 195 | } |
@@ -279,7 +279,7 @@ struct vfsmount *nfs_submount(struct nfs_server *server, struct dentry *dentry, | |||
279 | struct dentry *parent = dget_parent(dentry); | 279 | struct dentry *parent = dget_parent(dentry); |
280 | 280 | ||
281 | /* Look it up again to get its attributes */ | 281 | /* Look it up again to get its attributes */ |
282 | err = server->nfs_client->rpc_ops->lookup(parent->d_inode, &dentry->d_name, fh, fattr, NULL); | 282 | err = server->nfs_client->rpc_ops->lookup(d_inode(parent), &dentry->d_name, fh, fattr, NULL); |
283 | dput(parent); | 283 | dput(parent); |
284 | if (err != 0) | 284 | if (err != 0) |
285 | return ERR_PTR(err); | 285 | return ERR_PTR(err); |