diff options
author | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-12-28 13:34:59 -0500 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2015-12-28 13:34:59 -0500 |
commit | 494f74a26c14d10bb26a45218b50feb75bdedeca (patch) | |
tree | 43ee8b68d67a3477ca3ebf7bfb9e123f6082bacf /fs/nfs/write.c | |
parent | b0ac1bd2bbfd5e500432714e55a791c4d394047f (diff) |
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/write.c')
-rw-r--r-- | fs/nfs/write.c | 2 |
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) | |||
244 | { | 244 | { |
245 | int ret = 0; | 245 | int ret = 0; |
246 | if (wbc->for_reclaim) | 246 | if (wbc->for_reclaim) |
247 | return FLUSH_HIGHPRI | FLUSH_STABLE; | 247 | return FLUSH_HIGHPRI | FLUSH_COND_STABLE; |
248 | if (wbc->sync_mode == WB_SYNC_ALL) | 248 | if (wbc->sync_mode == WB_SYNC_ALL) |
249 | ret = FLUSH_COND_STABLE; | 249 | ret = FLUSH_COND_STABLE; |
250 | return ret; | 250 | return ret; |