summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@primarydata.com>2015-12-28 19:34:59 +0100
committerTrond Myklebust <trond.myklebust@primarydata.com>2015-12-28 19:34:59 +0100
commit494f74a26c14d10bb26a45218b50feb75bdedeca (patch)
tree43ee8b68d67a3477ca3ebf7bfb9e123f6082bacf
parentNFS: Background flush should not be low priority (diff)
downloadlinux-494f74a26c14d10bb26a45218b50feb75bdedeca.tar.xz
linux-494f74a26c14d10bb26a45218b50feb75bdedeca.zip
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>
-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 7a4fe7d82e65..1ea35f88eadb 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;