OSDN Git Service

NFS: Reclaim writes via writepage are opportunistic
authorTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 16 May 2016 21:42:45 +0000 (17:42 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 17 May 2016 19:48:07 +0000 (15:48 -0400)
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>
fs/nfs/write.c

index e18a97a..4dac51b 100644 (file)
@@ -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;