nfsd: switch unsigned char flags in svc_fh to bools
...just for clarity. Signed-off-by: Jeff Layton <jeff.layton@primarydata.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
This commit is contained in:

committed by
J. Bruce Fields

parent
fcaba026a5
commit
aaf91ec148
@@ -1631,7 +1631,7 @@ nfsd_rename(struct svc_rqst *rqstp, struct svc_fh *ffhp, char *fname, int flen,
|
||||
/* cannot use fh_lock as we need deadlock protective ordering
|
||||
* so do it by hand */
|
||||
trap = lock_rename(tdentry, fdentry);
|
||||
ffhp->fh_locked = tfhp->fh_locked = 1;
|
||||
ffhp->fh_locked = tfhp->fh_locked = true;
|
||||
fill_pre_wcc(ffhp);
|
||||
fill_pre_wcc(tfhp);
|
||||
|
||||
@@ -1681,7 +1681,7 @@ nfsd_rename(struct svc_rqst *rqstp, struct svc_fh *ffhp, char *fname, int flen,
|
||||
fill_post_wcc(ffhp);
|
||||
fill_post_wcc(tfhp);
|
||||
unlock_rename(tdentry, fdentry);
|
||||
ffhp->fh_locked = tfhp->fh_locked = 0;
|
||||
ffhp->fh_locked = tfhp->fh_locked = false;
|
||||
fh_drop_write(ffhp);
|
||||
|
||||
out:
|
||||
|
Reference in New Issue
Block a user