summaryrefslogtreecommitdiffstats
path: root/fs/nfs
diff options
context:
space:
mode:
authorTrond Myklebust <trond.myklebust@primarydata.com>2016-05-16 17:42:45 -0400
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2016-05-17 15:48:07 -0400
commitcca588d6c835e21fd7a3e02a964ce5fe09fdad26 (patch)
tree5f7c0e7294cc6ef662c050f3204e65e0e0d65246 /fs/nfs
parentabf4e13cc1e16ed83ec8363d44f76149034b2851 (diff)
downloadlinux-cca588d6c835e21fd7a3e02a964ce5fe09fdad26.tar.bz2
NFS: Reclaim writes via writepage are opportunistic
No need to make them a priority any more, or to make them succeed. Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r--fs/nfs/write.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/nfs/write.c b/fs/nfs/write.c
index e18a97aab275..4dac51ba1f7e 100644
--- a/fs/nfs/write.c
+++ b/fs/nfs/write.c
@@ -245,8 +245,7 @@ static void nfs_mark_uptodate(struct nfs_page *req)
static int wb_priority(struct writeback_control *wbc)
{
int ret = 0;
- if (wbc->for_reclaim)
- return FLUSH_HIGHPRI | FLUSH_COND_STABLE;
+
if (wbc->sync_mode == WB_SYNC_ALL)
ret = FLUSH_COND_STABLE;
return ret;