Message ID | 20241121082657.2644346-2-shengyong@oppo.com (mailing list archive) |
---|---|
State | Accepted |
Commit | f88c7904b5c7e35ab8037e2a59e10d80adf6fd7e |
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 78469D75BCD for <linux-f2fs-devel@archiver.kernel.org>; Thu, 21 Nov 2024 08:28:23 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-2.v29.lw.sourceforge.com) by sfs-ml-2.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from <linux-f2fs-devel-bounces@lists.sourceforge.net>) id 1tE2Y3-0007WI-1W; Thu, 21 Nov 2024 08:28:23 +0000 Received: from [172.30.29.66] (helo=mx.sourceforge.net) by sfs-ml-2.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 1tE2Y2-0007W6-1T for linux-f2fs-devel@lists.sourceforge.net; Thu, 21 Nov 2024 08:28:22 +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=7hSDkaOgxDxj42wa6Xm3IDycZHGXFlzxMJ0NklK4+QQ=; b=BzbYwCoSojorxqwCBzXijQN3BB VFR90mWJIfRJwInJX0b1RIg7eubOK6tiwFfG+J1b6FzkD8hKAt7b9Ncs8SNi5UeklL1d+QoyxlmGX o5donEFtYDsOj7Kv2gTBZg5w3B/OvgjqmYSo/IdyA7sAIiQn12pdMXMsGfCZ3mJ/kd/s=; 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=7hSDkaOgxDxj42wa6Xm3IDycZHGXFlzxMJ0NklK4+QQ=; b=PCgevgeOeSrENHmxACXHOo8WQH g/2ZY2TpPm7TF94aJZTlBB2EPBxBGyQRKrIdBDANY1Sykqp0nMsylcHnAZnWFTPbZouIwzN6HymkW 2dpp+416pXAAXPyqd4sZWfMrdl5IKB/qYzzu9prLbnHbqkGjxrSIS4r5qIEUiCJ49hQo=; Received: from mail-eastasiaazon11010049.outbound.protection.outlook.com ([52.101.128.49] helo=HK2PR02CU002.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 1tE2Y1-0002QN-EK for linux-f2fs-devel@lists.sourceforge.net; Thu, 21 Nov 2024 08:28:21 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=MpRlbBvg8yt7rr4yb7SFaMGSW8Rtm0zSKN28hTlBaEvgoGE9tqUa5QMznSBu0Vimk5jS6XjICk4SS3o0UKHCYslFifZhhReknxX7+B5LQrwGsr51jkK5t5PGxnx2lULAqIqeJskz98gCDtA81yJdWGIkRjlzhmr68wPNwgLgxkHVLiOEyEVLE/ePLj1ofMujK0GWv3fCRbWa1GIyTZ9QB/1MMuhcwbHaX+B7rL55tlmieHM+oEyilD732P6qeEGWJalHt3XYONBFFtfrFf4rAE3xwppYZ6ngm4PfUF+SI4WQ5JxZCW0GSg5zXPWCC0faIp2pV9XMxaqozBnIGTWBjA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=7hSDkaOgxDxj42wa6Xm3IDycZHGXFlzxMJ0NklK4+QQ=; b=dnZKcuY2226tbO43PYoYFCpO9umqeJ/2QZpdjN+lr3SOs8OYRekec9MqDqGWfqSSwKRA0Lx7MqaUwjxNbkjP0anZB1vrSE14r/Dwug4k09Ml1DZQM3RYca6NI8f1xmrwWej6kNLyS7nCsFL95o+SYeq4MU0wxu+XIP79E8wl2dCzgPv6y9PNzW2QbImCG0zzE1omVLq6js93Trc7wjBRsKBHcrVNy+m9k+qGHQcsKUMHUCoOZDg7FHUZLeZHI+TxJOQGiS9nQV7gJw1oKlME7QqcTMRnMjafiIMsxDZLbZhAFJqDwCgUBZfdnh2ZRUpRw5qYGjWOZA5NPXVlc+j+NQ== 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=7hSDkaOgxDxj42wa6Xm3IDycZHGXFlzxMJ0NklK4+QQ=; b=EVZP9+gY1zYUVVI3D1O7buWAS3C5hLrw7n37tNkQDh96BKLgszz/qxf2f54X6PSPCUdx7OIxeQTD5f/0s1Cd2HPPuXfIlHd9lGYi9+Mk8V4WF5ZRLl69fsSiGP5Jd+tiN1HGQcyaiuwOj8BkX3Z7hpFZc0HFOrBY0VDx2/t3iMA= 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 TY0PR02MB6290.apcprd02.prod.outlook.com (2603:1096:400:265::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8158.23; Thu, 21 Nov 2024 08:28:12 +0000 Received: from SEYPR02MB6014.apcprd02.prod.outlook.com ([fe80::bb06:c283:a50:7796]) by SEYPR02MB6014.apcprd02.prod.outlook.com ([fe80::bb06:c283:a50:7796%7]) with mapi id 15.20.8158.019; Thu, 21 Nov 2024 08:28:12 +0000 To: jaegeuk@kernel.org, chao@kernel.org Date: Thu, 21 Nov 2024 16:26:57 +0800 Message-Id: <20241121082657.2644346-2-shengyong@oppo.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20241121082657.2644346-1-shengyong@oppo.com> References: <202411211538.Tus6kZm1-lkp@intel.com> <20241121082657.2644346-1-shengyong@oppo.com> X-ClientProxiedBy: SI2PR02CA0008.apcprd02.prod.outlook.com (2603:1096:4:194::12) To SEYPR02MB6014.apcprd02.prod.outlook.com (2603:1096:101:6b::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEYPR02MB6014:EE_|TY0PR02MB6290:EE_ X-MS-Office365-Filtering-Correlation-Id: ddc56e49-4b4d-4440-2b04-08dd0a067008 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|366016|1800799024|376014|52116014|38350700014; X-Microsoft-Antispam-Message-Info: GPl0Clp2H1OgEW2VSqr/EZL1guyTZ9M09LJp7ouTXK2zQBjKsX2DdbS02u4tAYnrBg7oqN6B7tG27nSGGe07RPog6k8hy2k1K2m0XNcc1kyVgSeNqgF9y/jsVerO8f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+pp8qSxqr4PTdsRXYbz/QG8Vwt2O2tQQio+AR2L5DSa25pvbp3ubklTZYOKRDu8Vo2fKeBuHK/ZsMinbWROMKxvfnJaAMUdTkv56hau+zom3huINj3XQnU9Hj9ucNAgaC1mtidTra5nmMRIvTHZVbjL5Pi+4LU8qFE+1rsBLIhaJRFbx8lyYIFhgKlAFYu5bBP0tYQBK+hI= 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:(13230040)(366016)(1800799024)(376014)(52116014)(38350700014); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: cgrvYHyGssRztQQwyZL53HfLGVy3vLBoywbwg4CV1Pewj2oak8HPrY5QzFfai4Q53WngLmTOmfr7h5Yt4pEBpKpmu8kiMrjJBhU54KKKX2gwp7P42FaZhlc3gppa/Wn1uLTcL0Npi3KuMGAjW7CDeP0/HJ29/8jYrXXeIXaG1IZf0vFIuETGPJjrjAwY3jE3c2+aZnOXj2jyidT/nl5m0r1OPUsp6EjjwwZXTmtd6eZDW2YHuKjcu+Gmdu5rxjfo/SJdhsofBB3MgKf2Afd79M3bGf7pS5w3akbSN8MNkt5/WxK5taTiaNDgffdQM18YAjbyuZSBAbXLFKjmlnQTt7D5MVBfPfwZpRW6RPw3kyrVRaYGIp8dWE3JRLg0GwhiS0witCmjrWN5rmZB4hM8AdTaXlQxt9Ni2iAMtipBXEtaP4BExpES8jCBoWlKHWxUpL8HvEmI+/weXl80pLG5pgLjEFW55rRtzA108iXRV2uKrNMaGMJgSDeVZjvcs1dQfyAHponhPI2565joY1xsfXwG0Z8zvHgrv7T3DvifyNLUMGCL8RURLPPk7rY/wh0x/y4PXC0iDnsIUEM4OFJFwMY8Z2dhgATqsZ2E8vHvKx+Dst4L0ZPK6eMX0MReNGm/c9uB5rZLKaiHJdgNyJbWG+xAdMYOykir8/32at2S8A7ZGrLkUeBgcxA9i4aFOcv3zM+8g3zEr4EzboMWTf7jcUrH5ct3hMu1i9968hLNRhxUNVM8QdB2wA0WnoY0W+Dm99k4O/464GcERXtu1RF6g0ZXKz/omRVq8C2Cn8aDU6aZBRXs9uWK/8P+l6TSloDYq2EzSo4wfC8U//sBDmzAWz954fB2HDV8ud9BHYMlitV67eo/9S7tahhdqZBmWdAHJBruVZ0QyeuXRDz+Wh3Ix3PzeIr5N7RMESF+lEcmP1KjOxWVi5RG15hC/9+kmWTMs+1GISJjd9KXQirpekVC/rbjYX6PxZ5dYVp8Jq/Bn21Wci0rbudWm3t6addIt3avqcUgA+8NsOk00BqkALw9jGR5vEpWa28MHcYMq8AJECh0BT5vBXCrXFIS/VjjZ4OE9s2wRTeYz3wWTDMsHttlwz5HM/mRb7vwaThw/BBDZgFHuBoM+dpd141lyun3N7pllMSdkoMvX0Ca8bv5N3Z9sc8V0KF7GsjAWgSaGK+JgYMR1BvKm8hlj1DnMBemqVxkAymuzNTgNH+O5xotqp+9KjIUf+RpNNeR2sdj8cjXCfXdAFrhSS3jVA0MLxJEfHlYnlLq7ucHI/rkurT0JKe3nl1ue57t5ikc7NVdM/0A3t0Ftb6cH562VJEBVw9byEhBypOE+3HWzAI4qTQ7NBOa+u5O5jOv+S6Q6J4STVkkdE1M/cVuimpr5qAxsoqexL4F5Q6khSuhaJQz1AJmB6t0d4PN8rAzCaX4Bs4Rm490Ph+G7yJLB1bW4mG09GPs0O/djzt1GFgQ9vxuhddkYiYMF87N42poWaZA+a8mtrP+MFP6PHaZQyIpLPwsva2B73X4z+ekSXunBbD5P9L4RdzRhrVb8+0EY1oWND1bQThXPTYylKJ+EAiupFkf60OwgW4o X-OriginatorOrg: oppo.com X-MS-Exchange-CrossTenant-Network-Message-Id: ddc56e49-4b4d-4440-2b04-08dd0a067008 X-MS-Exchange-CrossTenant-AuthSource: SEYPR02MB6014.apcprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Nov 2024 08:28:12.4585 (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: 2tq+3g0p2MSfCD0ew94yPKJI5qGvuCDs1PIF6S9PXDnIqBGdcqhe8KIe7w3XaD2pGEYbp4Y8RGgT+JKB3rt4Uw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY0PR02MB6290 X-Headers-End: 1tE2Y1-0002QN-EK Subject: [f2fs-dev] [PATCH v3 2/2] f2fs: clear SBI_POR_DOING before initing inmem curseg 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-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,v3,1/2] f2fs: fix changing cursegs if recovery fails on zoned device
|
expand
|
diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 0db3fb47ff6f..9aab877f152f 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -4776,13 +4776,13 @@ static int f2fs_fill_super(struct super_block *sb, void *data, int silent) if (err) goto free_meta; + /* f2fs_recover_fsync_data() cleared this already */ + clear_sbi_flag(sbi, SBI_POR_DOING); + err = f2fs_init_inmem_curseg(sbi); if (err) goto sync_free_meta; - /* f2fs_recover_fsync_data() cleared this already */ - clear_sbi_flag(sbi, SBI_POR_DOING); - if (test_opt(sbi, DISABLE_CHECKPOINT)) { err = f2fs_disable_checkpoint(sbi); if (err)