Return-Path: Received: from mail-qg0-f51.google.com ([209.85.192.51]:35801 "EHLO mail-qg0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751765AbcEPVnT (ORCPT ); Mon, 16 May 2016 17:43:19 -0400 Received: by mail-qg0-f51.google.com with SMTP id f74so96570866qge.2 for ; Mon, 16 May 2016 14:43:19 -0700 (PDT) From: Trond Myklebust To: Anna Schumaker Cc: linux-nfs@vger.kernel.org Subject: [PATCH v2 4/4] NFS: Reclaim writes via writepage are opportunistic Date: Mon, 16 May 2016 17:42:45 -0400 Message-Id: <1463434965-44877-4-git-send-email-trond.myklebust@primarydata.com> In-Reply-To: <1463434965-44877-3-git-send-email-trond.myklebust@primarydata.com> References: <1463434965-44877-1-git-send-email-trond.myklebust@primarydata.com> <1463434965-44877-2-git-send-email-trond.myklebust@primarydata.com> <1463434965-44877-3-git-send-email-trond.myklebust@primarydata.com> Sender: linux-nfs-owner@vger.kernel.org List-ID: No need to make them a priority any more, or to make them succeed. Signed-off-by: Trond Myklebust --- fs/nfs/write.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fs/nfs/write.c b/fs/nfs/write.c index 5f4fd53e5764..7c3c62892b0b 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; -- 2.5.5