From patchwork Fri Mar 10 03:08:21 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?5p2O5oms6Z+s?= X-Patchwork-Id: 67189 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:5915:0:0:0:0:0 with SMTP id v21csp658305wrd; Thu, 9 Mar 2023 19:15:08 -0800 (PST) X-Google-Smtp-Source: AK7set9RpFYqTflxbsa+LFA7VT5hGyDN6vIuOPx0MaohGs8PSJuX7Ko4cwxMlwt8hAruXwbR+VEX X-Received: by 2002:a17:902:da90:b0:19c:e405:4446 with SMTP id j16-20020a170902da9000b0019ce4054446mr28234794plx.30.1678418108694; Thu, 09 Mar 2023 19:15:08 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1678418108; cv=pass; d=google.com; s=arc-20160816; b=sPxuzTQCR+OR/5GCFFYdshLjRri6fbFqKNGuXPO7v+s6gqJ7QrgdbVlMUxVtEztP7p A60noGsTONLVpNJdYkpkS/4mtBFWYc36/4E4MC7jI5NeSy0LI7ovGZhqrFiXm61gJfvY FbbRcx2gUJEMUy1Z1lSgrQKd/RlPdtzLSjzfljpDauKTuZ7nr7+P+CBHdRDFgRZsC57N ZFu4LJN69YFtIhoj9toZtyFRWpHMseV9f72eKR/6CU8qjLgS5+k1DX/zTzWqfAE6gfl5 EHfibOhZoASbJSZB0KPmSo6LoJGBq4MR8dUwGhoVNBzmPF+6mTJAbczHVTHooeDRUyib 57VQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=17DcBGO+6YLG7OAiYgPiEvXKUjwNfnHVU4GCh2Uz8wE=; b=j6KnuGW/mEYLklYB5TE7NcOXO8xK7dneap3hVniej3gXwHzvGnJsprCmuupDiJen3Q fKuflUWwdui9D0HkTLYZ44b29S/eodws9XDbpTrv+uhIcyf5znelsTC653vAbVvUAtYv Wngs4CYC15aPO7BmWrC1do86kbir/aNqWM63NfUxr0Cs6sP2cXZggM/r2h2upNpCPk9i WK4RSia3NDuSukXkgn+nX1CNUNqvqFrDk6i++R50kOzBloz9Hi5tvz8BB/EG6js7/UNT Ij7gRV2YJYllrZcMpJ2FgKKNWF5FquqTxujUmCxcQsXN73z97bZFTO2pYRLIZc52DhQJ vHRQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=G9m6VlPU; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q20-20020a170902b11400b001993762e5eesi933699plr.316.2023.03.09.19.14.55; Thu, 09 Mar 2023 19:15:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@vivo.com header.s=selector2 header.b=G9m6VlPU; arc=pass (i=1 spf=pass spfdomain=vivo.com dkim=pass dkdomain=vivo.com dmarc=pass fromdomain=vivo.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=vivo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229999AbjCJDIu (ORCPT + 99 others); Thu, 9 Mar 2023 22:08:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58916 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229910AbjCJDIp (ORCPT ); Thu, 9 Mar 2023 22:08:45 -0500 Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2095.outbound.protection.outlook.com [40.107.117.95]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46BF9E20C4 for ; Thu, 9 Mar 2023 19:08:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QSq38KtgcXt6Yfqscsn9SZRX5IuAtXxGGoK9rmsefdN3uwqgX2O3YVyT3GPww+cOszRY0wBQFoT5Igq2WPF1sXpD0EHMlVxKYjMFBQoNnH+3sbGijqvWWhfMIEKVpt5ZpHuYKsZJT0rGsle3oZt4ZADIpSJav/4KysWlikK7If/7fJ1Xmm8lopeDHX+8bkwDt7Z+eootpd5vswKY4aXPiD60RVIm0oKWyhigEIOtMWXE3LMWowBC6ULKwWz0iyUCr6zy2o9UkERJvy28aA0osVp2Gigqv7iw7CAkY1/9RwBcYqpWylkH71SThaMINP4Yy/HT3C1S0Y6/KldZTYTP6w== 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=17DcBGO+6YLG7OAiYgPiEvXKUjwNfnHVU4GCh2Uz8wE=; b=EsSIwGHSqTJfOYMViDY2w+LLnm3C7aWAvNZOGYBj6a0XT4K9OCdgR+24Sn0rfecqFkNL2ICcrjQYjJ4gJHxnUC6uYjRAWq7slsPhFPG6sVLVj1+8w+zZZqGTLFiJyGAqMoEe2UjnT3btDLjEjCRr+1Ihj3FdIV8Go3VHTK8MVEijDHzYAUnAItIIDe6Suxb8ukxrnUXA/ffypZ0ZkjKh4yA/4wgupOMyMV9zNBi/HYw3lMJ/qOpApWZmP3IfdTjl7eifreY2+YvgPBRxKavXn0OzTFsFu8Pwfr8E8ZaqAv/dgUSLVAM4PZ9HxTWFGpA1e+CkxgU57IB7vcc3TRT3vA== 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=17DcBGO+6YLG7OAiYgPiEvXKUjwNfnHVU4GCh2Uz8wE=; b=G9m6VlPU/pTIPTc3mxE/dJgvPkF8gwWMNhmMBbYYUoB3wbgB6BzcXSg3LXCoNwPZ1M+SErwQyqU7ijJ/zaVBQwSNljb2Ocw8DYNT++WT6YyEUyLAtNwUmY22HlYvqL7VKYbtqsje+ALwDWSFAyeDEQU8+iDYsW83kPMoS2ZQtgKVwjfFHAGhzplUilPdE/mXy6BHEUvHqPRlZmM0+vbQM3KUhpr7BTVA3TPzVW/zAoKrJxL85x93g5DjZqrUZw/Vnb7C+FcvBvL2fuxxOGcGuTdu1AxsD/HLkB+bxNqHPFeCrveHG2bCP/xLCfFHyTY/uOKdFIr6gRVFXJb2ucu8mg== 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 KL1PR0601MB4275.apcprd06.prod.outlook.com (2603:1096:820:73::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6178.19; Fri, 10 Mar 2023 03:08:38 +0000 Received: from SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::daf6:5ebb:a93f:1869]) by SEZPR06MB5269.apcprd06.prod.outlook.com ([fe80::daf6:5ebb:a93f:1869%9]) with mapi id 15.20.6178.019; Fri, 10 Mar 2023 03:08:38 +0000 From: Yangtao Li To: almaz.alexandrovich@paragon-software.com, jack@suse.com, dushistov@mail.ru, brauner@kernel.org, ntfs3@lists.linux.dev Cc: linux-kernel@vger.kernel.org, Yangtao Li Subject: [PATCH 3/3] ufs: use wrapper i_blocksize() in ufs_get_locked_page() Date: Fri, 10 Mar 2023 11:08:21 +0800 Message-Id: <20230310030821.66090-3-frank.li@vivo.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20230310030821.66090-1-frank.li@vivo.com> References: <20230310030821.66090-1-frank.li@vivo.com> X-ClientProxiedBy: SI2PR02CA0026.apcprd02.prod.outlook.com (2603:1096:4:195::19) To SEZPR06MB5269.apcprd06.prod.outlook.com (2603:1096:101:78::6) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SEZPR06MB5269:EE_|KL1PR0601MB4275:EE_ X-MS-Office365-Filtering-Correlation-Id: 1c3a4540-9866-4fd3-198b-08db2114be93 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: UhG5xTP4yssg+TGcvj/ga8TmcgZaEsvLQBLGpTzdh2TySWBAi6hHFCWMFL3HwxkTzemFeDWajdPaCJhYGszBuXlptSKA2qDr3/nG5r0U3JfvPGkZdruVWSJWkCqOAHWX8MmuTIaVecJ6l0jJjntapL2+E7EKS4P6DbsPZ3jysEm68neOZ7nyM0QV+FeJrvkq/ILEP4yLRGv3YR5KViz2K6yMk6lh2lGBr+PKqMN2arMM7FWNqNS9m1h12AQnVjUZaVJ8Cr1OuIgFpfD/83WdBi4ErUBKVgd1aYyDKloeB1tY12ueeOm5RLjG3sa4AwD9EDr17g/IVCu4mn3KYsRVNulRY9IgFnQUNbByvanfe1WkkDF7h5mup1XeadPLgPIhrRFo3XLAsyTkGTOFWW5H8Y4w6/m+kg9YI8rQvf9zCJRP8gucEarMDZuMDI84Z8yxjTIoyOoyRScDnMZEcMhplP5UcQkQ+DMNmme5Gu7KbRb5W7w2rk3vCucV+LiDT7Nvm3hwch6VVUSRTUFrS6P5wdbiTI86Fdi/eZ6TmaYCNGppBospM5eAxtOHeBnPuYsnFqrdKKZD0MFfR5KIWQkGjnzfCNeK/dUhYHCaYMnmFICBpjLmxT/phIbDmi9rzwp1+dvMwCBtz+TFXqsj31smcZ8AzV7Aipq8FOh9pHYk5hRE/61TnKlg1m0HO8bVAtHGBGPGVI+14dQXaAsIJDGJtw== 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:(13230025)(4636009)(376002)(136003)(346002)(39860400002)(366004)(396003)(451199018)(4744005)(36756003)(5660300002)(83380400001)(107886003)(6666004)(26005)(6486002)(1076003)(2616005)(52116002)(6506007)(6512007)(478600001)(316002)(4326008)(66946007)(66476007)(8676002)(8936002)(41300700001)(66556008)(86362001)(186003)(38350700002)(38100700002)(2906002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: OiZPcYuAz/Innc0cNx/lg+0dmtWeo8iiaQQPa3WJi5K3I2Xmu7AgmW0heOXud7NSu1leFnwkvEXg/jop5U5uEeI6c+eBqEgjaK7fQq2bvbZHidvTyD/BL5w7RBWyBnLp3ilKYt/1pYdCnsBxSSktJcGZlb6gaWXLy3i94MdqFKsH+7/3qpogTJ5AG07HGd6XRItaL5OQzKOfNQ1eBqFN+GLD3abatIDHViohQLjvVUXTMdxbDQnxJgIrCyvkd9BPeD3huBohYUUSt00VigJqsD5/CqN+Wx/175NnegUz9IAH7+7nrsqbTvpE5gkWLW+FoVsBoaOWnqoke5sAbN8X/lZcE05MwZxSBCmmHBqE6dbPVSLgIQEbn17VOair0pWeYIRxA78+QN8z5x2fs8HdQ8Lk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GjB0FVbSpHTOVqHTiLyDvIRRi1NgmRgJyMlc3NUzwAZmHYzgBfjzZ2FpMbC5b2YP3MLsb/8rW0SwvGN3VTXI6R6+nLT31BpDaafOehegq9HNn6EiL X-OriginatorOrg: vivo.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1c3a4540-9866-4fd3-198b-08db2114be93 X-MS-Exchange-CrossTenant-AuthSource: SEZPR06MB5269.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Mar 2023 03:08:38.5007 (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: o1dKmVNBxf3wLzjJvUXugW5BnccGdryKQ1ocjigesIpNmZhKVFyJeFFV1T7mvjZM6O8PJ1onXPiqTtRGIA7FCA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR0601MB4275 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1759948946890674537?= X-GMAIL-MSGID: =?utf-8?q?1759948946890674537?= Convert to use i_blocksize() for readability. Signed-off-by: Yangtao Li --- fs/ufs/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/ufs/util.c b/fs/ufs/util.c index 08ddf41eaaad..f9c1009ba98a 100644 --- a/fs/ufs/util.c +++ b/fs/ufs/util.c @@ -266,6 +266,6 @@ struct page *ufs_get_locked_page(struct address_space *mapping, } } if (!page_has_buffers(page)) - create_empty_buffers(page, 1 << inode->i_blkbits, 0); + create_empty_buffers(page, i_blocksize(inode), 0); return page; }