summaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@primarydata.com>2015-12-28 13:34:59 -0500
committerTrond Myklebust <trond.myklebust@primarydata.com>2015-12-28 13:34:59 -0500
commit494f74a26c14d10bb26a45218b50feb75bdedeca (patch)
tree43ee8b68d67a3477ca3ebf7bfb9e123f6082bacf /fs/nfs
parentb0ac1bd2bbfd5e500432714e55a791c4d394047f (diff)
downloadop-kernel-dev-494f74a26c14d10bb26a45218b50feb75bdedeca.zip
op-kernel-dev-494f74a26c14d10bb26a45218b50feb75bdedeca.tar.gz
NFS: Flush reclaim writes using FLUSH_COND_STABLE
If there are already writes queued up for commit, then don't flush just this page even if it is a reclaim issue. Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/write.c b/fs/nfs/write.c
index 7a4fe7d..1ea35f8 100644
--- a/fs/nfs/write.c
+++ b/fs/nfs/write.c
@@ -244,7 +244,7 @@ static int wb_priority(struct writeback_control *wbc)
{
int ret = 0;
if (wbc->for_reclaim)
- return FLUSH_HIGHPRI | FLUSH_STABLE;
+ return FLUSH_HIGHPRI | FLUSH_COND_STABLE;
if (wbc->sync_mode == WB_SYNC_ALL)
ret = FLUSH_COND_STABLE;
return ret;
OpenPOWER on IntegriCloud