Message ID | 20240530100158.762954-1-shengyong@oppo.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 76da333f4b935af65c9465277032a1e24405375c |
Headers | show
Return-Path: <linux-f2fs-devel-bounces@lists.sourceforge.net> 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 51BC6C25B74 for <linux-f2fs-devel@archiver.kernel.org>; Thu, 30 May 2024 10:17:32 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-3.v29.lw.sourceforge.com) by sfs-ml-3.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from <linux-f2fs-devel-bounces@lists.sourceforge.net>) id 1sCcqh-0005pt-FJ; Thu, 30 May 2024 10:17:30 +0000 Received: from [172.30.29.66] (helo=mx.sourceforge.net) by sfs-ml-3.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from <shengyong@oppo.com>) id 1sCcqf-0005pk-QJ for linux-f2fs-devel@lists.sourceforge.net; Thu, 30 May 2024 10:17:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=MIME-Version:Content-Type:Content-Transfer-Encoding :References:In-Reply-To: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=6iFIcbH+I7wYmetgUEl0PtVhb4wF6eGAVvDNn7nfilc=; b=Uwt6epa7cw5kVd9ygbmXoUwQzw I/e/SIVGWb+okJmFlITRCGWXcmBWHxAoPwiWwOAwnXd4OgnUQ5Tx94+cgLzkebvHz2i+39FD00FCV UJUy+kyTsoXcRGxrHzTX+V/PDe7cA3Uv8ts3233PSu9gk52txYywb/KYBHGRf3rFPFn4=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=MIME-Version:Content-Type:Content-Transfer-Encoding:References: In-Reply-To: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=6iFIcbH+I7wYmetgUEl0PtVhb4wF6eGAVvDNn7nfilc=; b=JUXM5uFTKeb/u7XePnrHgCIXln L6W4b6eRPRl8ysQIn5ngBPyhBxOHb/Th1N+hHVeu54wOhA2WQGzB2nCQ2xErajX8w3X0IDv2ccmUe SxCsAb3oRPa3CGCpbBu3x0IsMEIj92SjayMko9U1Uk4imHa/JcpvvG+p97d8jvpGqyx4=; Received: from mail-sgaapc01on2047.outbound.protection.outlook.com ([40.107.215.47] helo=APC01-SG2-obe.outbound.protection.outlook.com) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) id 1sCcqe-0003CJ-QJ for linux-f2fs-devel@lists.sourceforge.net; Thu, 30 May 2024 10:17:29 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MI5tDdDYj1IaDgENOXD9duh9ZysYx5W4G4SGc8//wWCdqXsV6SFK2qPp0RkuuZttf21a/774zFNCddQQ8D2nqxe2p20GJBauVgNK+lyIhBAsPgU4h60m1KJlb3QYGKcidyW3QKm4amNq4oxw6odPJYF2OLMoGu7sX8Q4/oiaAerX2YYxWSjGzFxm02RktPLMVz8Q9h7CvdDr3o8/mKWr2QJYrIKS0HGl9FgPR/YYr7BYpTfES2qjkPneI290lnax4ZgUkRPsoJAheZYFqRxL2+1UtfrRsKeAV7JNH5DjJ8aR/PYW24YsVfmXL4QRjkw+Wc3HQ1D2EI8U1p/nEnX/1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=6iFIcbH+I7wYmetgUEl0PtVhb4wF6eGAVvDNn7nfilc=; b=gn2MYi+LP1X/CHXB01FjLLLxRKnajR55ouBLdDzaQHGeeTGgboaG+S8kGjvzw7jxVKVhJePf6udYWf9QjCiq55CPdc8hrqnJO0xYoQE+sdQVWx/Cuk9KZ92Oqc0psfASML0koKXojMaEjjTYhS+KwQkTP2BQRJ7aUtzyWHan66Dpu1CJ5Fy6LjmY2d0jQ6Eu1F79JFCbn6w0TfSaQ67vOi3Ub9pZcKaOPZXO+DIx7dsS6P8Do92Xl3wNsOGfeJyok2P2AUnX73uj434BMf3EqlN1ogVB/ImrsI4Fu2OUtBSlCaMjMNktIYNfpE3laZ8dCRA9ae6tRRSuvuguQytCuQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oppo.com; dmarc=pass action=none header.from=oppo.com; dkim=pass header.d=oppo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oppo.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=6iFIcbH+I7wYmetgUEl0PtVhb4wF6eGAVvDNn7nfilc=; b=uP1AogwkXhGJ6R+cJChXJ4lH3Qn8dbvVOHH4LNFaVjY0wRq/aXhN/RLLM4fVkwrLmC2LNSmA9wbHfppP5TRlP0xMNntRT+Vk+grnzR2JF9FVm1Gpc2cnEmAN1aqBazFqbx3tp2xtrHxU4G/3gL1OsPdu62UYXNALeGMeC3xbKnk= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oppo.com; Received: from SEYPR02MB6014.apcprd02.prod.outlook.com (2603:1096:101:6b::10) by TYSPR02MB7389.apcprd02.prod.outlook.com (2603:1096:405:34::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7611.30; Thu, 30 May 2024 10:02:28 +0000 Received: from SEYPR02MB6014.apcprd02.prod.outlook.com ([fe80::bb06:c283:a50:7796]) by SEYPR02MB6014.apcprd02.prod.outlook.com ([fe80::bb06:c283:a50:7796%4]) with mapi id 15.20.7611.030; Thu, 30 May 2024 10:02:28 +0000 To: jaegeuk@kernel.org, chao@kernel.org Date: Thu, 30 May 2024 18:01:58 +0800 Message-Id: <20240530100158.762954-1-shengyong@oppo.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240529112411.380453-1-shengyong@oppo.com> References: <20240529112411.380453-1-shengyong@oppo.com> X-ClientProxiedBy: SG2PR06CA0187.apcprd06.prod.outlook.com (2603:1096:4:1::19) To SEYPR02MB6014.apcprd02.prod.outlook.com (2603:1096:101:6b::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEYPR02MB6014:EE_|TYSPR02MB7389:EE_ X-MS-Office365-Filtering-Correlation-Id: 0b6e9608-3213-4f19-d752-08dc808f9cb0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230031|366007|1800799015|52116005|376005|38350700005; X-Microsoft-Antispam-Message-Info: FXg8TpXtn2q0qA8iaqFdBV16t+Ophl3s0ADfkqdThggnXU2xERLKdTjDuX/k/TZldt+WWfZZNMNDbFbTpVRvUM5+3lnrbg5jwzNGUsNXhEq5/E7OiAN70Ckx0wOb/Hcf2rFch/m6Z5DfgYY+j9tB58K3QVJ1GCFzi4mxBdv+Uc/QPL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IuMQXDa7QAd68myHR8qVZsrsUTDHYJ6Sf1G9wqb5L0yEKLSeXo1Vpxf2dv6Ine7d23V05tDfcRKd16DmcChNvPi/nGu7BCID6vP/0DlGYSdCJD/3lJWeh50A== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SEYPR02MB6014.apcprd02.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(366007)(1800799015)(52116005)(376005)(38350700005); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: GHDX/IJokzw1R0umXM6QrEUMmaNnPMGaHefRWG9Aq4OFGFaFETCeWhEaftGufiFrKUbb/XO0cbodQ9hziY5V4VznVSxt/gPvhM39hG40FHm6I4GNZ9Trz3Wpe4bSarfI9QPrqJ/2xXjGcnKwLgp/9bqxkVFk7rMbpdV+mE76zh0w0yzvdm22m7eBDB9KdXC4mW0s1pLrqR9ZX1HmMY8FmCIkSNtjIYe/OXl2VDLc/6i0EofWSNsYu8TTdUs2ForuFMBZqDSyodo4RJ2Hh/NVmF5sNGzAmU8DRwLvVPJJvk0c1WcYiNctGDn6kTUhQAn59MPULlyFMLitVrmupUefKmFHMNy6vwVPoL+vWizcXcsDae72bNVj7yWpjfslJPH12vtjjq2NJHBDiNa/oPR4UpO5bd2yxIwlTZr7RqEWwoM7JlyZxbV/u9Dyhd59f/V3khk6iLTtWMBmbZrYVvchH7Nw5G5L2GLcrd4LdVNBV0teO7754yRJOilvZoLEzGRXJvChKuy/Bu79GD+oKKO3wYOiZB0Gm/ANyv66HnPjowV8jpjpDvOVxp1jlXhrpbkTEoO0IymtwCm8gacrzYbYVJC4pzTuHmNnyFveh4e2z5/Ot99RNs7o/X7ZHz+S/F+8GABezdis9iBFREQVKwXE/gjC2AQReR/bAMdK2jC10gw8ezF5u/9Ojv660o2vfbOnkyyc273kKf/tSSEpgYNPEXTYMlovz6i2mY2QkPk2s6Hz6gwMeqVhcut4bTNnw+cl0ByfQfRp8YBm22vcf/Slla+2qfxeDLrHSQ4IVBt90c2bbx4Mwy9klsr0UHVVWxP7Zll3ExPlIFaHHcm+ng4Ug0n5hY67+IQDOiD0gkuDGpBmXW39xaK3qmFvT2jWaB6a8bbz54Qvw8rdU5C9CkjT3K8/zH0cpSRrAPYQlKzD/MkURP9JjOVlrba7OjRLqNCSQqyma3JhDTcSxZL1xhQc/pDf8Tb3eD7jHWT1gk+lE4QaMzsEt0/RXOiw0AMtMmJ4/HTloGE3L3hAvFTZ8HWDRf9lq2dzntH4cQKMp0fKuz2QEDYDfxLgYJg88TVhqs0xU2ov1wjNMkotxk7qZaklii8l0wXukuMxpTk1qiyhng65nShZMYBd5hdaNWCzzgMTDcmJ3xTNr4WS7oB4gHOWSzijDVyDl+8Mlatt20JuI6PDRsbGVH6nOtgeeYVoyT5ONZrLzeDPpbsP9NVa21gfMOwidGxWQ2tHdnHuhHt6woX5haqi1POkguDfPXKRF8E3O6UdJQKXJmEjPYYR8Bz/JtBJJCYJ4U8UgxPKKvqkqg6yxUSs8rtH8NheB65P3/3af9sWRVnlJJnDrlYLh3c/70muuwW7RjMxJIX1IUMCM7ATd3lntkzpYWhrmp+JoDZA/I11HIzwxxBPaJwO2NSCgwv3vW+IHx1xzlG71l9Gl5i4CBkVRmwNKmwGuO/XVrsZRmDrAYqCNcuSMpi/6QjuyWRqmIbahKY/8HUEmEj+Fy7en3LN2oF+ccekbgujvS+WXrt7JCmtMr+Ov1gri1S6BEgHf/cdb04cNmMUmLd/FIYAzDEVHB7Xii96hdcJ64K6 X-OriginatorOrg: oppo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0b6e9608-3213-4f19-d752-08dc808f9cb0 X-MS-Exchange-CrossTenant-AuthSource: SEYPR02MB6014.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 May 2024 10:02:28.0515 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f1905eb1-c353-41c5-9516-62b4a54b5ee6 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: X+KKWsoW9zjuMbBJMB1zypXkW1GEq2H/GOl7M1mnPLgRCMROFGYRXlHCbIQFq/I07jxxP9K2/thLttYo2S17bg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYSPR02MB7389 X-Headers-End: 1sCcqe-0003CJ-QJ Subject: [f2fs-dev] [PATCH v2] f2fs: alloc new section if curseg is not the first seg in its zone X-BeenThere: linux-f2fs-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-f2fs-devel.lists.sourceforge.net> List-Unsubscribe: <https://lists.sourceforge.net/lists/options/linux-f2fs-devel>, <mailto:linux-f2fs-devel-request@lists.sourceforge.net?subject=unsubscribe> List-Archive: <http://sourceforge.net/mailarchive/forum.php?forum_name=linux-f2fs-devel> List-Post: <mailto:linux-f2fs-devel@lists.sourceforge.net> List-Help: <mailto:linux-f2fs-devel-request@lists.sourceforge.net?subject=help> List-Subscribe: <https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel>, <mailto:linux-f2fs-devel-request@lists.sourceforge.net?subject=subscribe> From: Sheng Yong via Linux-f2fs-devel <linux-f2fs-devel@lists.sourceforge.net> Reply-To: Sheng Yong <shengyong@oppo.com> Cc: linux-kernel@vger.kernel.org, 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 |
Series |
[f2fs-dev,v2] f2fs: alloc new section if curseg is not the first seg in its zone
|
expand
|
Hello: This patch was applied to jaegeuk/f2fs.git (dev) by Jaegeuk Kim <jaegeuk@kernel.org>: On Thu, 30 May 2024 18:01:58 +0800 you wrote: > If curseg is not the first segment in its zone, the zone is not empty. > A new section should be allocated and avoid resetting the old zone. > > Reviewed-by: Chao Yu <chao@kernel.org> > Signed-off-by: Sheng Yong <shengyong@oppo.com> > --- > v2: remove and update inaccurate commit msg > > [...] Here is the summary with links: - [f2fs-dev,v2] f2fs: alloc new section if curseg is not the first seg in its zone https://git.kernel.org/jaegeuk/f2fs/c/76da333f4b93 You are awesome, thank you!
diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c index 4c8836ded90fc..50b38cbe33401 100644 --- a/fs/f2fs/segment.c +++ b/fs/f2fs/segment.c @@ -5004,7 +5004,8 @@ static int fix_curseg_write_pointer(struct f2fs_sb_info *sbi, int type) } /* Allocate a new section if it's not new. */ - if (cs->next_blkoff) { + if (cs->next_blkoff || + cs->segno != GET_SEG_FROM_SEC(sbi, GET_ZONE_FROM_SEC(sbi, cs_section))) { unsigned int old_segno = cs->segno, old_blkoff = cs->next_blkoff; f2fs_allocate_new_section(sbi, type, true);