From patchwork Wed Sep 27 20:13:58 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jens Axboe X-Patchwork-Id: 9974699 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C1C2560375 for ; Wed, 27 Sep 2017 20:15:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B6B7029317 for ; Wed, 27 Sep 2017 20:15:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id ABFAB29319; Wed, 27 Sep 2017 20:15:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.4 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AB74729317 for ; Wed, 27 Sep 2017 20:15:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752022AbdI0UOd (ORCPT ); Wed, 27 Sep 2017 16:14:33 -0400 Received: from mail-wm0-f42.google.com ([74.125.82.42]:47544 "EHLO mail-wm0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752008AbdI0UO2 (ORCPT ); Wed, 27 Sep 2017 16:14:28 -0400 Received: by mail-wm0-f42.google.com with SMTP id r136so22468597wmf.2 for ; Wed, 27 Sep 2017 13:14:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=vCIUhsJxKlMuWgjSym8bsfWzzoKJ0g3P52Rpb7fKsEQ=; b=xdPom4Z2k42/5RS4dU9oqUH5fQrkIDtQ251r+pqOn1YIopORgCwbCDIOcVXAKqqHdk 5ltR1HpfWYcW7DjxP84GDVHHHjemfAfESRU1bQ/BSuncWhqn7wpPEzJjSDBIpVVaoSA0 V8IjRprYwa9ptcVslfVIEjBNN8kzI3SJSAsrFPiA1XpbIuFtGKOnHIiXlOhQMwFhKKej Z/XE6+KD8jxu9njxZ2oq4ni6n/MEI/0uNRMTB9CR7KW6xYVH0RjFtBCfRKMgpYCLBO8D IZBLqleYOXsJx75L9ZFXZ5k1RBEXkePc6kn2ppXAbtOBO/YO1L4uVnzaW0ydjA11a2Y9 DKqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=vCIUhsJxKlMuWgjSym8bsfWzzoKJ0g3P52Rpb7fKsEQ=; b=hQtyngJWxVUzTKgjCxn+Pp8RDtWax9GnQ0b5SA4Kak1kLWhwIOlacoXIL5T9jfYZe7 wLxCSYAR5eb+kbu6s+OKJTKXdijTPhsiDYr40XMWXTiH0GVK0b7K8QXgOu4QpDuiDKrx 6MFW+CzAM0PkxPHVetmMfHPxZDdU77Q3tuKtoCblyPnrkJV5zjauPznf9jYBQp1hJlUd z9cSmgbHhMj0yrNqA7Zvx4KEyHepnP2Jk/poHCO6JM/eV4RHDGtgfS4SCynR49uA43ff vpVRN6dhKvcaK3QRCuXVtx9c54KzP9/we/dovOa2Tjoti4hOQvsuJMRX00JTiendACbS g1ig== X-Gm-Message-State: AHPjjUhH5f129eXlvDvf9Kh8zaMorXwJ7P73rWqT5JDsHPCurLUkOZOG O8BJwU6k240zh3MyGtyTZUWWbA== X-Google-Smtp-Source: AOwi7QDMl0LLPJ9NlRaPJblTE6JnjN+VdtKafyTgm0/FZTiD/uRQyh6Xcas0PdRRsD7XsWfAs1bvAA== X-Received: by 10.28.168.69 with SMTP id r66mr1265130wme.2.1506543267584; Wed, 27 Sep 2017 13:14:27 -0700 (PDT) Received: from localhost.localdomain ([83.167.33.93]) by smtp.gmail.com with ESMTPSA id o59sm23180961wrc.45.2017.09.27.13.14.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 27 Sep 2017 13:14:26 -0700 (PDT) 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-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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,