diff options
Diffstat (limited to 'fs/nfs/super.c')
-rw-r--r-- | fs/nfs/super.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/nfs/super.c b/fs/nfs/super.c index 322b2de02988..21f8f52bf37d 100644 --- a/fs/nfs/super.c +++ b/fs/nfs/super.c | |||
@@ -433,7 +433,7 @@ int nfs_statfs(struct dentry *dentry, struct kstatfs *buf) | |||
433 | struct nfs_server *server = NFS_SB(dentry->d_sb); | 433 | struct nfs_server *server = NFS_SB(dentry->d_sb); |
434 | unsigned char blockbits; | 434 | unsigned char blockbits; |
435 | unsigned long blockres; | 435 | unsigned long blockres; |
436 | struct nfs_fh *fh = NFS_FH(dentry->d_inode); | 436 | struct nfs_fh *fh = NFS_FH(d_inode(dentry)); |
437 | struct nfs_fsstat res; | 437 | struct nfs_fsstat res; |
438 | int error = -ENOMEM; | 438 | int error = -ENOMEM; |
439 | 439 | ||
@@ -447,7 +447,7 @@ int nfs_statfs(struct dentry *dentry, struct kstatfs *buf) | |||
447 | 447 | ||
448 | pd_dentry = dget_parent(dentry); | 448 | pd_dentry = dget_parent(dentry); |
449 | if (pd_dentry != NULL) { | 449 | if (pd_dentry != NULL) { |
450 | nfs_zap_caches(pd_dentry->d_inode); | 450 | nfs_zap_caches(d_inode(pd_dentry)); |
451 | dput(pd_dentry); | 451 | dput(pd_dentry); |
452 | } | 452 | } |
453 | } | 453 | } |
@@ -2526,7 +2526,7 @@ int nfs_clone_sb_security(struct super_block *s, struct dentry *mntroot, | |||
2526 | struct nfs_mount_info *mount_info) | 2526 | struct nfs_mount_info *mount_info) |
2527 | { | 2527 | { |
2528 | /* clone any lsm security options from the parent to the new sb */ | 2528 | /* clone any lsm security options from the parent to the new sb */ |
2529 | if (mntroot->d_inode->i_op != NFS_SB(s)->nfs_client->rpc_ops->dir_inode_ops) | 2529 | if (d_inode(mntroot)->i_op != NFS_SB(s)->nfs_client->rpc_ops->dir_inode_ops) |
2530 | return -ESTALE; | 2530 | return -ESTALE; |
2531 | return security_sb_clone_mnt_opts(mount_info->cloned->sb, s); | 2531 | return security_sb_clone_mnt_opts(mount_info->cloned->sb, s); |
2532 | } | 2532 | } |