aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd
diff options
context:
space:
mode:
authorJeff Layton <jlayton@primarydata.com>2014-11-19 07:51:15 -0500
committerJ. Bruce Fields <bfields@redhat.com>2014-12-09 11:21:21 -0500
commit7501cc2bcf9a71cc1f19e38775c234815ee44578 (patch)
treecd60b136d4912a98a5efa722e4028bf5c3a29551 /fs/nfsd
parent4d152e2c9a6a3e3556ce5da7782a9e2836edbe0f (diff)
sunrpc: move rq_local field to rq_flags
Signed-off-by: Jeff Layton <jlayton@primarydata.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'fs/nfsd')
-rw-r--r--fs/nfsd/vfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c
index f1999619d516..60c25850fb16 100644
--- a/fs/nfsd/vfs.c
+++ b/fs/nfsd/vfs.c
@@ -962,7 +962,7 @@ nfsd_vfs_write(struct svc_rqst *rqstp, struct svc_fh *fhp, struct file *file,
962 loff_t end = LLONG_MAX; 962 loff_t end = LLONG_MAX;
963 unsigned int pflags = current->flags; 963 unsigned int pflags = current->flags;
964 964
965 if (rqstp->rq_local) 965 if (test_bit(RQ_LOCAL, &rqstp->rq_flags))
966 /* 966 /*
967 * We want less throttling in balance_dirty_pages() 967 * We want less throttling in balance_dirty_pages()
968 * and shrink_inactive_list() so that nfs to 968 * and shrink_inactive_list() so that nfs to
@@ -1006,7 +1006,7 @@ out_nfserr:
1006 err = 0; 1006 err = 0;
1007 else 1007 else
1008 err = nfserrno(host_err); 1008 err = nfserrno(host_err);
1009 if (rqstp->rq_local) 1009 if (test_bit(RQ_LOCAL, &rqstp->rq_flags))
1010 tsk_restore_flags(current, pflags, PF_LESS_THROTTLE); 1010 tsk_restore_flags(current, pflags, PF_LESS_THROTTLE);
1011 return err; 1011 return err;
1012} 1012}