diff options
Diffstat (limited to 'fs/nfsd/nfs4acl.c')
-rw-r--r-- | fs/nfsd/nfs4acl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfsd/nfs4acl.c b/fs/nfsd/nfs4acl.c index eaf4605a4b9e..67242bf7c6cc 100644 --- a/fs/nfsd/nfs4acl.c +++ b/fs/nfsd/nfs4acl.c | |||
@@ -139,7 +139,7 @@ int | |||
139 | nfsd4_get_nfs4_acl(struct svc_rqst *rqstp, struct dentry *dentry, | 139 | nfsd4_get_nfs4_acl(struct svc_rqst *rqstp, struct dentry *dentry, |
140 | struct nfs4_acl **acl) | 140 | struct nfs4_acl **acl) |
141 | { | 141 | { |
142 | struct inode *inode = dentry->d_inode; | 142 | struct inode *inode = d_inode(dentry); |
143 | int error = 0; | 143 | int error = 0; |
144 | struct posix_acl *pacl = NULL, *dpacl = NULL; | 144 | struct posix_acl *pacl = NULL, *dpacl = NULL; |
145 | unsigned int flags = 0; | 145 | unsigned int flags = 0; |
@@ -780,7 +780,7 @@ nfsd4_set_nfs4_acl(struct svc_rqst *rqstp, struct svc_fh *fhp, | |||
780 | return error; | 780 | return error; |
781 | 781 | ||
782 | dentry = fhp->fh_dentry; | 782 | dentry = fhp->fh_dentry; |
783 | inode = dentry->d_inode; | 783 | inode = d_inode(dentry); |
784 | 784 | ||
785 | if (!inode->i_op->set_acl || !IS_POSIXACL(inode)) | 785 | if (!inode->i_op->set_acl || !IS_POSIXACL(inode)) |
786 | return nfserr_attrnotsupp; | 786 | return nfserr_attrnotsupp; |