Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1178974ybt; Thu, 9 Jul 2020 00:12:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxiZY2Ih4AaTk+Wg1A1hC5kheWV8JSy8CsMwEgFvQ+PF6N4JWacWVrpYpcSnBTAxdNvKos4 X-Received: by 2002:a50:a45d:: with SMTP id v29mr70231922edb.284.1594278727246; Thu, 09 Jul 2020 00:12:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594278727; cv=none; d=google.com; s=arc-20160816; b=uQXldhoz1Wb0RQUGs/28w6cHjH7fYrR8JUK5U7xNgnDzJ4gvvVSzxpivu6fl6U1aoF y1QpDWzkGQBGGolY8p5dW/dElGqglbEE2fsSTr01VyiEfaDsA9lvyHqSPPXC92bHAei5 DdGUH7Z1N/V3bZM9g9e01sLQdAFp93Ube01FlaLL0tTPLnAZ277n9Pze0ir3o3JPVImo xXN974vPBkoykosT/2ZBg25j/FtCuREirW8YNR5dAuh6DzBSgX9Qhhcg9grvlhw75eiu IKw4Lm99+Co6rO6e6fuw0U1qTvs8sybvcEZ18zb3+nmAsb85jEdMwSgMErRbrysiO3Av 5hrg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject; bh=eb2DB252JvKL7NfTds0iVcfOC9uqArwvCSpuslAO5Fc=; b=DTNzA4NsBc9Kej/C2XsPFq+lcySMKQUsq24HWO/jfPMzegF3rOIqIjLYtC20kEFmXr HIiT28meU60hQwwZ2ndNO0dI711MMe3bidwpFdQ5Ib/2iTPtfqEON6wKlZUFrOvAhVGO E08rjIKNnv5mpT0awpvrAmW2JhIhLfTW8hd4PXSmgci3+gnC/uMLy99fl6yo5l4OVlVt mp/1Cy3Fn0uPTgiGtOx73dUPbhuQ8ztkyxqQS7DuGsQo3BrmDa546+Y7Se8BWoCqpVYL lS+l0i72Lz9BC4WMExPt8W06meGCZoqQ5QppQPDfVtnbxFCPJ/YC0WEQ7qHxuTp9QtBx kACw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b7si1587570edq.546.2020.07.09.00.11.44; Thu, 09 Jul 2020 00:12:07 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726289AbgGIHLJ (ORCPT + 99 others); Thu, 9 Jul 2020 03:11:09 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:7279 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726193AbgGIHLI (ORCPT ); Thu, 9 Jul 2020 03:11:08 -0400 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 837BFB140773F287219E; Thu, 9 Jul 2020 15:11:04 +0800 (CST) Received: from [10.134.22.195] (10.134.22.195) by smtp.huawei.com (10.3.19.214) with Microsoft SMTP Server (TLS) id 14.3.487.0; Thu, 9 Jul 2020 15:11:00 +0800 Subject: Re: [f2fs-dev] [PATCH] f2fs: don't skip writeback of quota data To: Jaegeuk Kim , , , References: <20200709053027.351974-1-jaegeuk@kernel.org> From: Chao Yu Message-ID: <2f4207db-57d1-5b66-f1ee-3532feba5d1f@huawei.com> Date: Thu, 9 Jul 2020 15:10:58 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20200709053027.351974-1-jaegeuk@kernel.org> Content-Type: text/plain; charset="windows-1252" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.134.22.195] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/7/9 13:30, Jaegeuk Kim wrote: > It doesn't need to bypass flushing quota data in background. The condition is used to flush quota data in batch to avoid random small-sized udpate, did you hit any problem here? Thanks, > > 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)) >