Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1129814ybt; Wed, 8 Jul 2020 22:31:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwslLSkhCdQnIO6GTXGs9KFxU1St+dRUaxNugl/kAsJHPvCTFCtZCWYnSS5AAJp/cnQbLnG X-Received: by 2002:a17:906:53d4:: with SMTP id p20mr54075589ejo.472.1594272677892; Wed, 08 Jul 2020 22:31:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594272677; cv=none; d=google.com; s=arc-20160816; b=XjxTmUxlxZTo7cbbv/V10Tcv9OaQaYeqd/eo7Wlvq0P6G/2kX1XHfaXvOzdViNPUch PPZESQ/wB5VRkQmfviamS6BpfZ0ttW3hI9V4XBVZeVAicnrPikS9A7Qc5ZC4ctvNQNHo NBmfS4Le+bx+7MRUaUCG4N0ZwLdQeKfSyfPGGYyy+A6TjykM2HDTzar2eCa71Ghm4det KzZEuCEBN0XAODCebsEd7byvBUx9LH8YEyT6eLb73EpfzKpS1KPBs7Lo0OCGUZ9Kjnyk DutnBmnN3oBunfipppV52+7fHnWyKXYiz7wTPkx9A6cnmYIRIPlNIRYMjeESgXzg+OZ/ xocQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=6L+dDSS+71ZIhQE6FKc5Ob7ttZIkB/Wlbs6iIjK3p6Q=; b=yrM7gtFcRYZi2/yu7nCbRvLPda5UHLHj/Sz/sprsIoj7ARMBk9SLiCyc3qIEQZIBMb ubPvRCtRY/1siNnb07bvQOKjFuLk3J3tDZqG18Qtk+eKez0RBXwX98Vgkno842Waa+V6 x8NGAAH0waiZHbD/WnBPfFPmWYZUUy5HTqss8rN1Uk11IMS0fGEge2aEYmKp1J1MBe6B grWRHMD+oSVGaXQIf68UcoDGfw8p9w2e9n88rMBiupD12NiBDNmRfqYA4VSMHbKqdxQ0 WQKrt6XP+YnXBG6VhRj9hu7+yn7P0gDd398hGYHm0tWvhEl8KmXGgDGFXV7QwVDeDnof x0KQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Ah473ElM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dm17si1487045ejc.707.2020.07.08.22.30.54; Wed, 08 Jul 2020 22:31:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Ah473ElM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726408AbgGIFa3 (ORCPT + 99 others); Thu, 9 Jul 2020 01:30:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:49070 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726064AbgGIFa2 (ORCPT ); Thu, 9 Jul 2020 01:30:28 -0400 Received: from localhost (unknown [104.132.1.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4FF55206A1; Thu, 9 Jul 2020 05:30:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1594272628; bh=4IX4LY45faliARN3WG0EnS0QUvtq8EhBAHND+vk7uOs=; h=From:To:Cc:Subject:Date:From; b=Ah473ElMO1z3Tf02N5OGRiMwSHdvVhYVuHm0rbf16M6X/Aov5QMICL3UtvboLG0Mr hnCJI+kS+5D6PRPDv/teU0Q5B+rPtf0gmXAQ98zHF83tiAn1gFWPNKFGmp37bMBZFA KVFEAOjkk+JVSYtHWd70kvWfe1pwff7yEEj5HYGI= From: Jaegeuk Kim To: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, kernel-team@android.com Cc: Jaegeuk Kim Subject: [PATCH] f2fs: don't skip writeback of quota data Date: Wed, 8 Jul 2020 22:30:27 -0700 Message-Id: <20200709053027.351974-1-jaegeuk@kernel.org> X-Mailer: git-send-email 2.27.0.383.g050319c2ae-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It doesn't need to bypass flushing quota data in background. Signed-off-by: Jaegeuk Kim --- fs/f2fs/data.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index 44645f4f914b6..72e8b50e588c1 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -3148,7 +3148,7 @@ static int __f2fs_write_data_pages(struct address_space *mapping, if (unlikely(is_sbi_flag_set(sbi, SBI_POR_DOING))) goto skip_write; - if ((S_ISDIR(inode->i_mode) || IS_NOQUOTA(inode)) && + if (S_ISDIR(inode->i_mode) && wbc->sync_mode == WB_SYNC_NONE && get_dirty_pages(inode) < nr_pages_to_skip(sbi, DATA) && f2fs_available_free_memory(sbi, DIRTY_DENTS)) -- 2.27.0.383.g050319c2ae-goog