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 | |
parent | b0ac1bd2bbfd5e500432714e55a791c4d394047f (diff) | |
download | linux-stable-494f74a26c14d10bb26a45218b50feb75bdedeca.tar.gz linux-stable-494f74a26c14d10bb26a45218b50feb75bdedeca.tar.bz2 linux-stable-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>
Diffstat (limited to 'fs')
-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) { 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; |