From patchwork Tue Jun 13 07:51:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 13278117 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 1B3E1C7EE29 for ; Tue, 13 Jun 2023 07:52:22 +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 1q8yp9-00044v-Gf; Tue, 13 Jun 2023 07:52:20 +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 1q8yp8-00044n-HV for linux-f2fs-devel@lists.sourceforge.net; Tue, 13 Jun 2023 07:52:19 +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 :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:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=SW4DcOoc1clDIkyQR7TahMkLf+jWstpfGElZUpW8uD0=; b=XX1myBHity6HASDQtHV0RKcB5e eXcJLBMb2DOCwk2aFNygmMNTbPjYHyNIp1gNbyUPpHqJ5ONazuqrqjOYiDnuW5D/hXe5rQt0JRLuw 0NEyU2jzqiVZJCKDN1/YkGtn8divW0c+YJHevQ3E825stmeLNL1r+05ev4TzGwXBbyDE=; 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: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:In-Reply-To: References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post: List-Owner:List-Archive; bh=SW4DcOoc1clDIkyQR7TahMkLf+jWstpfGElZUpW8uD0=; b=Y 6VAMDvYMdf8eKwxnVJj0sZkb5nNrS/+YIFizlokepKN/9oAVokTaIVk4cSxUq7eeETnQEfkks/MDA iU7IMBh6s05qWHZ2YAPZgxpH7RClA2DcFQlgSGfMcYZvtlMgg304FxigMdKxUKb9t6FYPUNzumZZa LnMdASGw+0iwPrbQ=; Received: from mail-tyzapc01on2133.outbound.protection.outlook.com ([40.107.117.133] helo=APC01-TYZ-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 1q8yp8-0006Uy-H5 for linux-f2fs-devel@lists.sourceforge.net; Tue, 13 Jun 2023 07:52:19 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=COh3ZvLICTasRQyM86+0rnzPAPHIQPU9znWBJrSsZHkZQUirN0ituDNTp6OWgxU/pU3J1lD6EkG1a+ujvQq/oomwcKOvR95Z4YvigGofKU1xegc10SHaBhUu+n33g1XJCjXI+tx5dsC1LonyszB5DtMCEvgUaUdJHbDNrUCgmd/Gw0IPL0ISszGwpMy1aewOo7l3tdc/pEfvWo8chtLYQZCKrBdG2hVj0Xg/0wlXcZJnQuKbpVmNGKScqijqEOi8zpVO8NWljpYrlD4GoVeAJ/F8GeaLn3x/o2bK337q39DfaF/pOk9ofUe7UXMH9+FqDe41qbR6uUgm7R6JFIkDUQ== 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=SW4DcOoc1clDIkyQR7TahMkLf+jWstpfGElZUpW8uD0=; b=lBsk46DgtykougCbdjC9rwLT+WsD5voZIi6e0pCYDol3DedRexpljevpTnBz855/PPrITmFIdKhiQS/d0CfeV9yJncH1Cp6pd7DhBYeuYHFyJPIvj4naihlIdPrfvr0rZyZxUAXLDRB7DUTmhynFwDhxHvse292g7M2rKvThHoU8wy8aLM3t6Elhws5eAGZWGjCPNexYywhlO3IUPLOKPaVzNJdBfq6KGRN3QtXlsZPIcrsfUdfiSLq5ZLA2tFWeigm6gbcnzJsFQnGBdP1jAFzrtqdEM77uJuHALZdJgE5IyofoMv1/tyWmeenRZ+UFOxHU5K7WgnriB/5pFu6+7Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SW4DcOoc1clDIkyQR7TahMkLf+jWstpfGElZUpW8uD0=; b=lUR+0CQ4YYXv110jqAGcEvlL+/R67dNJPfm2M7sfqKq0nudm3uUMxnBoEYVrwq7LfouOKk+RBcjjT/nO5rvVc/XnjaoyIpUAVQfp+QRy9z4sGckTKzov4iVEo5mRxAQkarBWMvtO3gDR8zYN20P1hTpdz8MJ6c2ZBFmsGARg3pjzIA5sVpOLonvXf6IS4IMCJMXeTNCAVFuTumGttmiq4yhOJSPNnp1FhwWcbVc2Vh9LE1GGbXKS4hHINIPCN7zYAJkEcqN+icJaeBe7eB6T6U7BqlALUJHCWpdo0jAfbLDiVpy4N8s/Z+vh4WANGWtE/IZ3MbWUU0v1BIhfuV5XuQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) by SEZPR06MB6572.apcprd06.prod.outlook.com (2603:1096:101:184::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.31; Tue, 13 Jun 2023 07:52:10 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::76d6:4828:7e80:2965]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::76d6:4828:7e80:2965%3]) with mapi id 15.20.6455.039; Tue, 13 Jun 2023 07:52:10 +0000 To: Jaegeuk Kim , Chao Yu Date: Tue, 13 Jun 2023 15:51:56 +0800 Message-Id: <20230613075157.41065-1-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 X-ClientProxiedBy: SI1PR02CA0032.apcprd02.prod.outlook.com (2603:1096:4:1f6::12) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SEZPR06MB6572:EE_ X-MS-Office365-Filtering-Correlation-Id: 4c942304-0db3-435d-2561-08db6be31758 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 2vPI/VSErlUpMCN6mGFnpY+Q+jnUpTV0FpYgze7sOlHDCQyxyAII7m+kSh3Y4UKboxJFtMcmL9keG1NFfC1tnaZytrkSY4j4Y6s+sbiSQjRYk9DzVAPb5QdMUi3x93x2OoBxwXV8oU/N4242pCYJ0W3kh2WM3pSkEfwapi+mRIZdfUGsx9wlMRgHmlJRLFQ899FHsX47LFuslj2eWcbAmGnLhF1hP6rvf2hXKYqcTo69S3erJZUZpYF2A8IQaVHLbNkuWWXTXbIRbIhHfj1wksgVvJN2x6QIVpEcPclxkU98gK9G2HIOu7VTTe95CI+CkycicVD+KAM1le2dIk1EFbNBlsa6ZfnBYmmwKH+AXPhjIjwXdLxHxSPISfUiiMocwYDaeMOmoqvPU8pK+IxYEbdwIHHn7CZxWVn554CC2Qe3FclyRtHkg21P/AaXjBJ4TOW22yBN6eaPTfD2wM4toJUR04teIVY60/myRTE5jVyJ9W/DaVuCcKUXBJLb77JhjAAQNWfVVxfC/kr3w6UOY7NKC5otMKcP0htkzS6y/oIXKQIRdMk+fP3oo/Y4j+dJUE74+o2mVHukLrsUJTZY/NNmcCoGJZwggfC5Bkvhwx0gOa07tXdDAk/K14NpiFKx X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SEZPR06MB5269.apcprd06.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(4636009)(39860400002)(396003)(346002)(136003)(366004)(376002)(451199021)(186003)(52116002)(2906002)(6666004)(83380400001)(478600001)(1076003)(36756003)(6486002)(2616005)(38100700002)(86362001)(26005)(6506007)(38350700002)(6512007)(66476007)(66946007)(66556008)(5660300002)(110136005)(8936002)(4326008)(8676002)(41300700001)(316002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 46Zj3cMloDWuxwXHbCtVrhOOlOG2k8X4KiIq/D5kC6/Ematfh15jZ4DKuBHlzpTvzqOlJKgPrfcxUrxdR43kc7ZW6ohoj39zNji/xE4Ig6Ypuijko222WsZajT5JY4cc1j/bx8rdvCjp2drrm/HMffpVBiacDnx5eB7/rYhLRz06Q7rfdTAZR4j/LSWxW1JS4JGKopcD7Omwb3dMA2dMjIfS12JGyRKFKAR6+tQiMVpOtSUNbGL63s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CeUbeYRegf0jQS9Ub1jL8F0VXP2Cl/4vOBczXgFmQv6DpKClcMqd3zXZbjcF3dso2XknT6A6Z9FQActdoqGUAaq8nY/8n5xZOMkDryvsCYvqQ/LRqQbgmRNS7eEpI1PUcLxDcy/NGlunRzhCj955gWXMVZBUudBYGZ2K5oxq39W5ff1qZgQHfFeIIgT5b8kvk7zENQjQhP315hmUr/NttGmwTiFYn0w7OftkueVKAbpGswcTdR6AnrbVlNxqWpkYZp1TnN2z/Djj/KmpY X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4c942304-0db3-435d-2561-08db6be31758 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jun 2023 07:52:10.0159 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: anRW8rs3XoDcVjg5pdFiylXah5dRujMsPqe/eBTpMjybpfPM93e02YJDXXCp0/PBjDdVUx0rqL0AY38c7Itsdw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR06MB6572 X-Headers-End: 1q8yp8-0006Uy-H5 Subject: [f2fs-dev] [PATCH 1/2] f2fs: convert to use F2FS_SMALL_VOLUME_IPU_POLICY macro 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: , X-Patchwork-Original-From: Yangtao Li via Linux-f2fs-devel From: Yangtao Li Reply-To: Yangtao Li Cc: linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, Yangtao Li Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net Just for cleanup. Signed-off-by: Yangtao Li --- fs/f2fs/segment.h | 2 ++ fs/f2fs/super.c | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/fs/f2fs/segment.h b/fs/f2fs/segment.h index 2ca8fb5d0dc4..28ccbaffe546 100644 --- a/fs/f2fs/segment.h +++ b/fs/f2fs/segment.h @@ -708,6 +708,8 @@ enum { F2FS_IPU_MAX, }; +#define F2FS_SMALL_VOLUME_IPU_POLICY (BIT(F2FS_IPU_FORCE) | BIT(F2FS_IPU_HONOR_OPU_WRITE)) + static inline bool IS_F2FS_IPU_DISABLE(struct f2fs_sb_info *sbi) { return SM_I(sbi)->ipu_policy == F2FS_IPU_DISABLE; diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 1b2c788ed80d..375a178540d6 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -4314,8 +4314,7 @@ static void f2fs_tuning_parameters(struct f2fs_sb_info *sbi) SM_I(sbi)->dcc_info->discard_granularity = MIN_DISCARD_GRANULARITY; if (!f2fs_lfs_mode(sbi)) - SM_I(sbi)->ipu_policy = BIT(F2FS_IPU_FORCE) | - BIT(F2FS_IPU_HONOR_OPU_WRITE); + SM_I(sbi)->ipu_policy = F2FS_SMALL_VOLUME_IPU_POLICY; } sbi->readdir_ra = true; From patchwork Tue Jun 13 07:51:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yangtao Li X-Patchwork-Id: 13278118 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 0FDECC88CB2 for ; Tue, 13 Jun 2023 07:52:29 +0000 (UTC) Received: from [127.0.0.1] (helo=sfs-ml-4.v29.lw.sourceforge.com) by sfs-ml-4.v29.lw.sourceforge.com with esmtp (Exim 4.95) (envelope-from ) id 1q8ypH-0007ZY-OE; Tue, 13 Jun 2023 07:52:28 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-4.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.95) (envelope-from ) id 1q8yp9-0007ZK-QU for linux-f2fs-devel@lists.sourceforge.net; Tue, 13 Jun 2023 07:52:20 +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=H+3RJUylxZ2BDv8qqONAc27GOdD9mtFjjjMhHozz6kY=; b=VlzwNcHo9wfL5Z134A5d7A5Asp RTS6IzHHyIJ+swgoY+4vr4BzElh+9l4kFOmvQ4ifig3bmc+lcLZ6iVgsnud5IRdWhH217TIuPVZjx jGxAn+hJvxmIuZdTKjnbTMsaRA5rG1pSgSwYE4Aa2X16EuBxfHDC/l5A/qK94EwUib/A=; 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=H+3RJUylxZ2BDv8qqONAc27GOdD9mtFjjjMhHozz6kY=; b=Z4bdaJ1qIC5eYmnXudkMlwj33y GM4eDL6cEXVHJ4DV2rWAYFX9DT/Kfsu3cRC5ryAnmQHgw++J7NaSzvmd5JS4YAM5EL0Uok3PVeZ8X K3bQWLKT02y/+cjF82DZlaBhuOk7C0XXvOf1EYCiXxGbcWa6h9WDy5Ys1n5br7V/uW44=; Received: from mail-tyzapc01on2133.outbound.protection.outlook.com ([40.107.117.133] helo=APC01-TYZ-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 1q8yp9-0006Uy-Kw for linux-f2fs-devel@lists.sourceforge.net; Tue, 13 Jun 2023 07:52:20 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XK7DAS3Nv5zVL4OO9rWRk15T7CvzbHZ0d523/UEbgN5LVikmrJe8XWbohpt+wXPRgBtMYYa0/upgv6aaMF55fLyAeT0k07AjL6IPpgauVUp91Nzs9GHZ/wqRDgDILAYJyj7uqXSwl1uzZzJmGrOKk7oG2umUowZDRVFjYokC/v+d9IGG6nEdmVhd7aK75FqfPCxxjjcS2FawQ59/AG5vki8YiIEitA/wyuSHoBBsZo1HKtESbMKdCzptBfuBXySqvQOghfpI+/LvCqw287YDH3iv6JxKdhDtd1BCfbBiaaUSJbEYYYnbE6UQyV201NVE05ztaCRcUCwU2BzJrFPHsA== 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=H+3RJUylxZ2BDv8qqONAc27GOdD9mtFjjjMhHozz6kY=; b=aFXnNGy3jqo588j6AxXjQLNpIWO2t175IpKlf1m3Dhw9kg4w6Fgxbd3NXUi8X+Vy2trndRtKUDapZ4kCQaWEfx5LI/3O9n4fWlggdNWJ4zlfg/KGMtUMUwqYhF1AoSOVNjCvaeiq3TweuUSSpvacQ4jvbk2SBUgdUUxpqKzOeRQrdLYdF96P2x06sfrN06bD6YWM0ugg3nwN3Ueu5033AwHSkS0NSlP0YKmNyQ+EWT+3NOHWtJzKB/a1yjba2o2nCYgDZHA8y1NtZn3W9w10Od65KTPS06Dqb7/FfP1Drf2ipJZsZzv8WPwknzmhMmQC2Uu3JqoVaKgeIOXwHqQEmA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=vivo.com; dmarc=pass action=none header.from=vivo.com; dkim=pass header.d=vivo.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vivo.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=H+3RJUylxZ2BDv8qqONAc27GOdD9mtFjjjMhHozz6kY=; b=gtNwDCoGTj1Pq60w7frQAztr9femWGtf3Vx4pGuoSqAq7y5xRSzRM60m0xLysVjD6mot79RW8A3tqZNZgJ9jWIOFK0hUmVGrdA6ANGvm5jsrWO7lgBudMKGy+XI8g74jU0MFB3CpB50+JB5agz2oWKlgBCklIs6mphIgv4E7ZWynQMGQwZshetQTNCU6RED9hg/TeTqJjX1+qLHUxYLAxr4V4R0ypWLpR6sm/wyniWiZFWEaHs31q/49yPebe7s0fIVS3FH+p5+MxOkKsAhRz4yEhq4AfIqNUDrcvEVh6DoOjUkqENPnDq8JdXdb5RwhNJZPHw3attxYvFZdJ2QnXQ== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=vivo.com; Received: from SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) by SEZPR06MB6572.apcprd06.prod.outlook.com (2603:1096:101:184::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6455.31; Tue, 13 Jun 2023 07:52:12 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::76d6:4828:7e80:2965]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::76d6:4828:7e80:2965%3]) with mapi id 15.20.6455.039; Tue, 13 Jun 2023 07:52:12 +0000 To: Jaegeuk Kim , Chao Yu Date: Tue, 13 Jun 2023 15:51:57 +0800 Message-Id: <20230613075157.41065-2-frank.li@vivo.com> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230613075157.41065-1-frank.li@vivo.com> References: <20230613075157.41065-1-frank.li@vivo.com> X-ClientProxiedBy: SI1PR02CA0032.apcprd02.prod.outlook.com (2603:1096:4:1f6::12) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|SEZPR06MB6572:EE_ X-MS-Office365-Filtering-Correlation-Id: 84ea1f3e-9040-4824-2906-08db6be318d3 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 3xdOIu/EUGY/IOflE+8i7kqofk6CiIv2OdayXMY9oRHExNDazhPprM4dBLH51vXLPG1C0UBJNIQeTRxKJsJT+TgcObYUGbTk5Yf8vGt0qU6Q2HI5zYK/WWCyUyBQ7LlcsZIM66VZ96f7zCtcCHylqpuw+lM1oVs9J5jvl+GbJ/iqByqj2JomvxIgIcHKzwIddYMtRZM/BIYaPDHMg7jsVN/c2+RSMANRIIpwAgqwoBnc7b6jPQD5Jh6aL9GiOJ4fr8wkLte4jhwUqED15s4PRNpLo5gbCwpBE5CRni0xfpcW7XHLjws4wo1DclWtXyK7d67JdvuCX0rJvKnmEyVNLtUVeRwKMXnqtqd0kNv53OJkMQsRkDERFwxvIomLWBTU5SW5QJPvjEbpvMM6QzHaN60vlXC+fSgSAixfBNAOutsqxxgXOVpbeSV0ovM9SJ5ILOmk0vwLVbyB5/MubI2k5Nkw8SgOvy8kLTnaZ2vcyr9XD9lGkikmhKolqtxdA4nxEKx6c+NUgcqtWwDi5zTs6ZB79A/vgeLRJNWu6e4wNeX2zlz+e6avhll6FiariucUxOQFtmoAd8Si+JtelkHDVCMAYiGAs4sV0gRl1OF1gxGpNB1pq+gsNlHp+U0C3c3E X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SEZPR06MB5269.apcprd06.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230028)(4636009)(39860400002)(396003)(346002)(136003)(366004)(376002)(451199021)(186003)(52116002)(2906002)(6666004)(83380400001)(478600001)(1076003)(36756003)(6486002)(2616005)(38100700002)(86362001)(26005)(6506007)(38350700002)(6512007)(66476007)(66946007)(66556008)(5660300002)(110136005)(8936002)(4326008)(8676002)(41300700001)(316002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ARjeGxjwyEApYyIx5cIGpgHw/hxZrAYrkmqWqNdRJSGtb5aVoaqWUq9EwEIiLyAoH55jBuOL1X2QUoeKqaAcpkUZdpgKu9lo78S9W+dRePzEXU7Fp4TCttkXfKpfuCUjy0Mnoky80OPeyVKPKKFJuLjniIe3qKXoAyntKYGBKY2RXEbORWT3OwVW4hVfWkxG9z/EIG4pjnNaM2xoD+oH0Cfxyb5otDd9R8rqUcN6ETJX1QiZWhRbpTni6k0gQYiAZvHHLzhu5xTyTWa2oPsGdSINQProYIlpC9XIErCsG+S1I2PMJMfznXpK383FrAzuAfIJC7WhiV/36d2ZZatwItxOKiDZV5yCwnMJUg6L8x9rDadrbdyVZxOrbhSwcq4Yy3j55v9rJ52yVuKNB1sPnjXnAvEvNMjUMRtgMmTiBe3eCiL03Cm0P5umvsxjsSvQj2iRnMuxUgFNsX/YvWvR/3RuXTd0EwtGmAkH3eBMxo0einA1PiKIJu5M8T+zGvC/8WJGRhuV0rcdQpJbEeVuf4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vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 84ea1f3e-9040-4824-2906-08db6be318d3 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jun 2023 07:52:12.3435 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 923e42dc-48d5-4cbe-b582-1a797a6412ed X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 00cfRnIVlkJEqlmxArBE3p0LSycnt8O6NpYpkzFsUyIKEPk+kvb1Nt+wEVjEbpElzpf1D0MKO+JydzhbRt8j5w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR06MB6572 X-Headers-End: 1q8yp9-0006Uy-Kw Subject: [f2fs-dev] [PATCH 2/2] f2fs: convert to use sbi directly 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: , X-Patchwork-Original-From: Yangtao Li via Linux-f2fs-devel From: Yangtao Li Reply-To: Yangtao Li Cc: linux-f2fs-devel@lists.sourceforge.net, linux-kernel@vger.kernel.org, Yangtao Li Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net F2FS_I_SB(inode) is redundant. Signed-off-by: Yangtao Li Reviewed-by: Chao Yu --- fs/f2fs/file.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c index 41e7c2b80f31..f45d05c13ae5 100644 --- a/fs/f2fs/file.c +++ b/fs/f2fs/file.c @@ -3476,7 +3476,7 @@ static int f2fs_release_compress_blocks(struct file *filp, unsigned long arg) int ret; int writecount; - if (!f2fs_sb_has_compression(F2FS_I_SB(inode))) + if (!f2fs_sb_has_compression(sbi)) return -EOPNOTSUPP; if (!f2fs_compressed_file(inode)) @@ -3489,7 +3489,7 @@ static int f2fs_release_compress_blocks(struct file *filp, unsigned long arg) if (ret) return ret; - f2fs_balance_fs(F2FS_I_SB(inode), true); + f2fs_balance_fs(sbi, true); inode_lock(inode); @@ -3646,7 +3646,7 @@ static int f2fs_reserve_compress_blocks(struct file *filp, unsigned long arg) unsigned int reserved_blocks = 0; int ret; - if (!f2fs_sb_has_compression(F2FS_I_SB(inode))) + if (!f2fs_sb_has_compression(sbi)) return -EOPNOTSUPP; if (!f2fs_compressed_file(inode)) @@ -3662,7 +3662,7 @@ static int f2fs_reserve_compress_blocks(struct file *filp, unsigned long arg) if (atomic_read(&F2FS_I(inode)->i_compr_blocks)) goto out; - f2fs_balance_fs(F2FS_I_SB(inode), true); + f2fs_balance_fs(sbi, true); inode_lock(inode); @@ -4056,7 +4056,7 @@ static int f2fs_ioc_decompress_file(struct file *filp) if (!f2fs_compressed_file(inode)) return -EINVAL; - f2fs_balance_fs(F2FS_I_SB(inode), true); + f2fs_balance_fs(sbi, true); file_start_write(filp); inode_lock(inode); @@ -4131,7 +4131,7 @@ static int f2fs_ioc_compress_file(struct file *filp) if (!f2fs_compressed_file(inode)) return -EINVAL; - f2fs_balance_fs(F2FS_I_SB(inode), true); + f2fs_balance_fs(sbi, true); file_start_write(filp); inode_lock(inode);