new helpers: fh_{want,drop}_write()
A bunch of places in nfsd does mnt_{want,drop}_write on vfsmount of export of given fhandle. Switched to obvious inlined helpers... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
a561be7100
commit
bad0dcffc2
3 changed files with 29 additions and 19 deletions
|
@ -838,7 +838,7 @@ nfsd4_setattr(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
|
|||
return status;
|
||||
}
|
||||
}
|
||||
status = mnt_want_write(cstate->current_fh.fh_export->ex_path.mnt);
|
||||
status = fh_want_write(&cstate->current_fh);
|
||||
if (status)
|
||||
return status;
|
||||
status = nfs_ok;
|
||||
|
@ -856,7 +856,7 @@ nfsd4_setattr(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
|
|||
status = nfsd_setattr(rqstp, &cstate->current_fh, &setattr->sa_iattr,
|
||||
0, (time_t)0);
|
||||
out:
|
||||
mnt_drop_write(cstate->current_fh.fh_export->ex_path.mnt);
|
||||
fh_drop_write(&cstate->current_fh);
|
||||
return status;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue