Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752038AbdI0UOe (ORCPT ); Wed, 27 Sep 2017 16:14:34 -0400 Received: from mail-wm0-f46.google.com ([74.125.82.46]:47545 "EHLO mail-wm0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752009AbdI0UO3 (ORCPT ); Wed, 27 Sep 2017 16:14:29 -0400 X-Google-Smtp-Source: AOwi7QDMl0LLPJ9NlRaPJblTE6JnjN+VdtKafyTgm0/FZTiD/uRQyh6Xcas0PdRRsD7XsWfAs1bvAA== From: Jens Axboe To: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Cc: hannes@cmpxchg.org, jack@suse.cz, torvalds@linux-foundation.org, Jens Axboe Subject: [PATCH 11/12] writeback: make sync_inodes_sb() use range cyclic writeback Date: Wed, 27 Sep 2017 14:13:58 -0600 Message-Id: <1506543239-31470-12-git-send-email-axboe@kernel.dk> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1506543239-31470-1-git-send-email-axboe@kernel.dk> References: <1506543239-31470-1-git-send-email-axboe@kernel.dk> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 626 Lines: 23 It's flushing all the dirty pages for this superblock, there's no point in not doing range cyclic writeback. Signed-off-by: Jens Axboe --- fs/fs-writeback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c index 2e46a1537e10..686d510e618c 100644 --- a/fs/fs-writeback.c +++ b/fs/fs-writeback.c @@ -2428,7 +2428,7 @@ void sync_inodes_sb(struct super_block *sb) .sb = sb, .sync_mode = WB_SYNC_ALL, .nr_pages = LONG_MAX, - .range_cyclic = 0, + .range_cyclic = 1, .done = &done, .reason = WB_REASON_SYNC, .for_sync = 1, -- 2.7.4