From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8627BC07E9D for ; Wed, 28 Sep 2022 02:11:21 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-1.v29.lw.sourceforge.com) by sfs-ml-1.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1odMXe-0006AE-9k; Wed, 28 Sep 2022 02:11:18 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-1.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1odMXd-0006A8-6q for linux-f2fs-devel@lists.sourceforge.net; Wed, 28 Sep 2022 02:11:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=MIME-Version:Content-Transfer-Encoding:Content-Type :In-Reply-To:References:Message-ID:Date:Subject:CC:To:From:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=7dfu8Jrod8WdnaF6zHgR31Uy+vOLjtGSSUexU5OyF4A=; b=ZOA48GyKR7HVs/ZfB6od/HNl49 iKbkb12kbzXwBawAUpw6QP+BQ+1HOxJsJOOwkpSL58W4bTK5BWvAMe3ui4An2iyP/mlY11tPJVRDr AyKXhGJn/8m8G1ppc8icFvMsIhJVGFGb8GRHwOGldLaiUYZkOnb+mlxDw4R80IXhNK7k=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=MIME-Version:Content-Transfer-Encoding:Content-Type:In-Reply-To: References:Message-ID:Date:Subject:CC:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=7dfu8Jrod8WdnaF6zHgR31Uy+vOLjtGSSUexU5OyF4A=; b=IRjkpnhpF4A8gtaOSc3A56TJfW U+1wBCR2/I3f7c7OOtjfnPAUt6UABJ+D57uhPFxLjBqPm/Q8d5SjG50q0HK9/kxok/tLZ0Npl0ZZw juYQcxpZBgp0nwcB7jL5niPWZu3dmqphOvmekmiRhcTcLniprKZmsWtTT21ADMIjqgFE=; Received: from szxga01-in.huawei.com ([45.249.212.187]) by sfi-mx-1.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) id 1odMXZ-0055eC-08 for linux-f2fs-devel@lists.sourceforge.net; Wed, 28 Sep 2022 02:11:17 +0000 Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.56]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4McfzD2Ch1zpVML; Wed, 28 Sep 2022 10:08:08 +0800 (CST) Received: from kwepemm000014.china.huawei.com (7.193.23.6) by dggemv704-chm.china.huawei.com (10.3.19.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Wed, 28 Sep 2022 10:11:04 +0800 Received: from kwepemm600014.china.huawei.com (7.193.23.54) by kwepemm000014.china.huawei.com (7.193.23.6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Wed, 28 Sep 2022 10:11:03 +0800 Received: from kwepemm600014.china.huawei.com ([7.193.23.54]) by kwepemm600014.china.huawei.com ([7.193.23.54]) with mapi id 15.01.2375.031; Wed, 28 Sep 2022 10:11:03 +0800 To: Jaegeuk Kim , Chao Yu Thread-Topic: [f2fs-dev] [PATCH] mkfs.f2fs: update allocation policy for ro feature Thread-Index: AQHY0Om5Gb87Y4MWzUaw9McrH3kN7q3y9+iAgAEf1DA= Date: Wed, 28 Sep 2022 02:11:03 +0000 Message-ID: <75b9bfd8d6ea4674914119edbee2e6a7@huawei.com> References: <20220925055802.11955-1-chao@kernel.org> In-Reply-To: Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.174.177.246] MIME-Version: 1.0 X-CFilter-Loop: Reflected X-Headers-End: 1odMXZ-0055eC-08 Subject: [f2fs-dev] =?gb2312?b?tPC4tDogIFtQQVRDSF0gbWtmcy5mMmZzOiB1cGRh?= =?gb2312?b?dGUgYWxsb2NhdGlvbiBwb2xpY3kgZm9yIHJvIGZlYXR1cmU=?= X-BeenThere: linux-f2fs-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: zhangqilong via Linux-f2fs-devel Reply-To: zhangqilong Cc: "linux-f2fs-devel@lists.sourceforge.net" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net > On 09/25, Chao Yu wrote: > > Update allocation policy for ro feature: > > - hot_data: allocating blocks by LBA ascending order > > - hot_node: allocating blocks by LBA descending order > > This will increase the RO image size. > > > > > Signed-off-by: Chao Yu > > --- > > mkfs/f2fs_format.c | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/mkfs/f2fs_format.c b/mkfs/f2fs_format.c index > > 40ac589..8d0f410 100644 > > --- a/mkfs/f2fs_format.c > > +++ b/mkfs/f2fs_format.c > > @@ -544,10 +544,10 @@ static int f2fs_prepare_super_block(void) > > } > > > > if (c.feature & cpu_to_le32(F2FS_FEATURE_RO)) { > > - c.cur_seg[CURSEG_HOT_NODE] = 0; > > + c.cur_seg[CURSEG_HOT_NODE] = > last_section(last_zone(total_zones)); > > c.cur_seg[CURSEG_WARM_NODE] = 0; > > c.cur_seg[CURSEG_COLD_NODE] = 0; > > - c.cur_seg[CURSEG_HOT_DATA] = 1; > > + c.cur_seg[CURSEG_HOT_DATA] = 0; Hi, I want to know that, does this change try to reduce the possibility of the 3rd situation that previous referred (f2fs: extent cache: support extent for no-compressed file)? The largest extent maybe only cover one part of continuous blocks in f2fs ro-image. Thanks, > > c.cur_seg[CURSEG_COLD_DATA] = 0; > > c.cur_seg[CURSEG_WARM_DATA] = 0; > > } else if (c.heap) { > > -- > > 2.36.1 > > > _______________________________________________ > Linux-f2fs-devel mailing list > Linux-f2fs-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel