diff options
Diffstat (limited to 'fs/nfsd/nfs4proc.c')
-rw-r--r-- | fs/nfsd/nfs4proc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfsd/nfs4proc.c b/fs/nfsd/nfs4proc.c index fa383361bc61..c5e28ed8bca0 100644 --- a/fs/nfsd/nfs4proc.c +++ b/fs/nfsd/nfs4proc.c | |||
@@ -838,7 +838,7 @@ nfsd4_setattr(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, | |||
838 | return status; | 838 | return status; |
839 | } | 839 | } |
840 | } | 840 | } |
841 | status = mnt_want_write(cstate->current_fh.fh_export->ex_path.mnt); | 841 | status = fh_want_write(&cstate->current_fh); |
842 | if (status) | 842 | if (status) |
843 | return status; | 843 | return status; |
844 | status = nfs_ok; | 844 | status = nfs_ok; |
@@ -856,7 +856,7 @@ nfsd4_setattr(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, | |||
856 | status = nfsd_setattr(rqstp, &cstate->current_fh, &setattr->sa_iattr, | 856 | status = nfsd_setattr(rqstp, &cstate->current_fh, &setattr->sa_iattr, |
857 | 0, (time_t)0); | 857 | 0, (time_t)0); |
858 | out: | 858 | out: |
859 | mnt_drop_write(cstate->current_fh.fh_export->ex_path.mnt); | 859 | fh_drop_write(&cstate->current_fh); |
860 | return status; | 860 | return status; |
861 | } | 861 | } |
862 | 862 | ||