diff options
author | Trond Myklebust <trond.myklebust@primarydata.com> | 2016-05-16 23:42:45 +0200 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2016-05-17 21:48:07 +0200 |
commit | cca588d6c835e21fd7a3e02a964ce5fe09fdad26 (patch) | |
tree | 5f7c0e7294cc6ef662c050f3204e65e0e0d65246 | |
parent | NFSv4: Use the right stateid for delegations in setattr, read and write (diff) | |
download | linux-cca588d6c835e21fd7a3e02a964ce5fe09fdad26.tar.xz linux-cca588d6c835e21fd7a3e02a964ce5fe09fdad26.zip |
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>
-rw-r--r-- | fs/nfs/write.c | 3 |
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; |