Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4762737rdb; Fri, 15 Sep 2023 11:24:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFsW1/rAhlE/gJAwg/t8MPuNgNWlJHzGeCAivAKuESOHxJASwcvQk1xMlo9aG0jmloBPdEv X-Received: by 2002:a17:902:d484:b0:1c0:d7a8:a43e with SMTP id c4-20020a170902d48400b001c0d7a8a43emr3086253plg.53.1694802245296; Fri, 15 Sep 2023 11:24:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694802245; cv=none; d=google.com; s=arc-20160816; b=vb77eZ1POCIRxmjxbzF4akarcVWAJ/31GkpSmThV6m1CJ+euGCGS+GX0Cotj790qCl 87ZO7e5OFYTme6w5W7YnZwVZN5wUhU8aeUTfnWxoKEoYtCMcRA1qtr4JTWyEVy7neXeX C0JWlVj+XmEpFXxdk3oBzeAL5vBmkqDR/1pZ0tedoJyBPAdm1IhB+TenZiO451IHihM1 53oCHsFzCSU04r42M/5Ipi8h9gcaFzW5DdEonhUi2r+Rbi3tmEuHAU/giuki6q8qXjBj LRYhFoKxRCEY1nv14973etqbj3ty66stZTQigh/Zy6jSLOZ7MslsBHqStqoHpCIALXLU SF4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:cms-type:mime-version :content-transfer-encoding:content-language:accept-language :in-reply-to:message-id:date:thread-index:thread-topic:subject:cc:to :from:dkim-signature:dkim-filter; bh=pQ5HIMyPnnwhcYJ76rc1mPPc+k+o81B2sKXtPyg4zdw=; fh=uxBAUgUSkBYxjd1CTtcj7MO+vdwExfJsOb4I3IkdCcM=; b=PzkbrUjs+ro0HghCuapskECyFIzPLjMYhteOXeTVvzlU7ynQhhVJ0mvaxsP8vqIu1x vUr+wjGdS8kOkorZSp2CryFmcWJZOnL6FqKQlDQPAWV0qoaOG12bnJ77J4ABqbEnUg2w ZZzkT/NVyeqlzaL4KoImGUKKurvEVx9nUgD5KXeFtmmedz/ZLnnGXxFnxksARwlKchOu /HKoP6JZx6WaZ7142S1bCBbyQS0G2Bj7s6cIQL0c3bWtR9k0x7uSzDAhUrRWzr/PzWNi 3mIVJum/oO7g7LERZKK+HoTIbMbjEicZTrigW1HH3MQswFtT9zv8IB5o0E/9RUBcrwcN w2Kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=dRnQE4X3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id d10-20020a170902654a00b001c364978a9csi3553748pln.362.2023.09.15.11.24.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 15 Sep 2023 11:24:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=dRnQE4X3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 2820983669CD; Fri, 15 Sep 2023 02:55:37 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234051AbjIOJz3 (ORCPT + 99 others); Fri, 15 Sep 2023 05:55:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234117AbjIOJzP (ORCPT ); Fri, 15 Sep 2023 05:55:15 -0400 Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C05930D0 for ; Fri, 15 Sep 2023 02:52:56 -0700 (PDT) Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20230915095127euoutp01fc4386c2cf3a3f6a6684ff0b7592aa48~FCbAstIb-0808108081euoutp01a for ; Fri, 15 Sep 2023 09:51:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20230915095127euoutp01fc4386c2cf3a3f6a6684ff0b7592aa48~FCbAstIb-0808108081euoutp01a DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1694771487; bh=pQ5HIMyPnnwhcYJ76rc1mPPc+k+o81B2sKXtPyg4zdw=; h=From:To:CC:Subject:Date:In-Reply-To:References:From; b=dRnQE4X3b17aD2oqDXZH5BTfLC+mfYSYB3NR2dMRflrnrl1BtrmPzKFgseY6oQpbQ ZzkRwa4nIp88Qnirv0XY2Ve9K2j2PL4EIuwJZYmEoBYkHzlKcZliBSpnqcK4cO017M XzHLOtBtiZ3MG74YPPkZIIJXV1cCDwNNHE5/9D/o= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20230915095126eucas1p2632b3b07d57634dee3bc87e2526e1769~FCbAZwO811725217252eucas1p2z; Fri, 15 Sep 2023 09:51:26 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id F2.9A.42423.E1924056; Fri, 15 Sep 2023 10:51:26 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20230915095126eucas1p2cf75674dab8a81228f493a7200f4a1ba~FCbACyp_W0866108661eucas1p2R; Fri, 15 Sep 2023 09:51:26 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20230915095126eusmtrp29f2fa2307f1978fafd648c484cebcafa~FCa-9WV9v1712217122eusmtrp2z; Fri, 15 Sep 2023 09:51:26 +0000 (GMT) X-AuditID: cbfec7f2-a51ff7000002a5b7-f4-6504291e5557 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id B1.3B.10549.E1924056; Fri, 15 Sep 2023 10:51:26 +0100 (BST) Received: from CAMSVWEXC01.scsc.local (unknown [106.1.227.71]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20230915095126eusmtip299bf0302eaf2d7781e72b80611f92e41~FCa-x_3a21112711127eusmtip21; Fri, 15 Sep 2023 09:51:26 +0000 (GMT) Received: from CAMSVWEXC02.scsc.local (2002:6a01:e348::6a01:e348) by CAMSVWEXC01.scsc.local (2002:6a01:e347::6a01:e347) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 15 Sep 2023 10:51:25 +0100 Received: from CAMSVWEXC02.scsc.local ([::1]) by CAMSVWEXC02.scsc.local ([fe80::3c08:6c51:fa0a:6384%13]) with mapi id 15.00.1497.012; Fri, 15 Sep 2023 10:51:25 +0100 From: Daniel Gomez To: "minchan@kernel.org" , "senozhatsky@chromium.org" , "axboe@kernel.dk" , "djwong@kernel.org" , "willy@infradead.org" , "hughd@google.com" , "akpm@linux-foundation.org" , "mcgrof@kernel.org" , "linux-kernel@vger.kernel.org" , "linux-block@vger.kernel.org" , "linux-xfs@vger.kernel.org" , "linux-fsdevel@vger.kernel.org" , "linux-mm@kvack.org" CC: "gost.dev@samsung.com" , Pankaj Raghav , Daniel Gomez Subject: [PATCH 2/6] shmem: drop BLOCKS_PER_PAGE macro Thread-Topic: [PATCH 2/6] shmem: drop BLOCKS_PER_PAGE macro Thread-Index: AQHZ57owSgjKzHCSYUqzwv9vQRCtyw== Date: Fri, 15 Sep 2023 09:51:24 +0000 Message-ID: <20230915095042.1320180-3-da.gomez@samsung.com> In-Reply-To: <20230915095042.1320180-1-da.gomez@samsung.com> Accept-Language: en-US, en-GB Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [106.110.32.103] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA01SfVCLcRzvtz179pSbe1rRj2a0K9S06s65B7WrcPfQddd5u0OHnZ6rWMvt afJ+ORzlpLxdrVLpZSuFJpNUunV6QURRhN7GqFxEE8toPXP67/Pyffl8f/fD2PxmzlwsVpFA KRUyuQh1QvSNP5/6Cr0Ryv/ag8VE9o0ylLj29hxKtBtnEu9HUxGi9rWYqKltQYj26myUeFf2 h0NUT1Rxia6094AoHhvhEvcqrqKEZTwbDeaRWUnPEDJPpyJvaX3I9lYVqStNRknd6Hku2Zxh QchvOmEEttUpMIqSx+6jlH7SnU4xZj2y9xNnv+VYOicJmJAU4IhBfCnUlkyAFOCE8XEtgHWf h1kM+Q6gxvwKYci3SZJhQv+15DZa7YYGwOTC7v9VDfphO3kMoF7fZyclAFb3lnJs/SjuDeta dFyb4YpncWBDwWlgM9j4UVj2QT2VywVfBvXPU1g27IqvhL0VL9gMlsB3D/sndQxDcC944g5l k3mTJT/SLkzJjnggHBlPtMkAnwf7S35xmelu8LUxl8Wc4AyvZtWwGTwbWqv77Kctga2dRsBg f3i7qM7+SiI4cTrfnlICuy5dRBkshsX5Q2wmgjNsyTRO3QtxqyPUm56xbXkgvhoammOZOS5w sKmSy2AB/HM3l5UGxOpp8dTTVqinrVBPW5EHkFLgRqnouGiKDlBQiRJaFkerFNGSXfFxOj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OYYOwtSWWLXzNDHGNoMTJmU9YJjBKz0KybhaSlllIWmYhaVnAyLKK USS1tDg3PbfYUK84Mbe4NC9dLzk/dxMjMDFtO/Zz8w7Gea8+6h1iZOJgPMQowcGsJMLLZsuU KsSbklhZlVqUH19UmpNafIjRFBhAE5mlRJPzgakxryTe0MzA1NDEzNLA1NLMWEmc17OgI1FI ID2xJDU7NbUgtQimj4mDU6qBqbB6f//C1Zwhr5xnrz01bdr361KegsJSb2a9fxgxwfbigj8B k5g/cLGX8vz/cWXK7O8lYdPO77n5KOTx5AIFvp816suWr1D3YtgfEq3tLHg9wXTK9CdbAqSq o/bF2Vkyvd++v22h3qve/pKSsjdmuybrrjvQ8+Oo2dZJ2kvXC888rbH6TERFjc38gP7Qp/6z zzv1Cfq8E9vmJr8qw2HJ0gnJSSkR3HdKbXoX+XzZZ3+h+/UE1bwOzR1K/XPN/15KeRpWvcXk Wlm7tf+TD7vfnVinP/U6j+Yk8/XzHTIVnu2WU1qrmr4v8Is3++FW5VNp3a6zRepbRO/Eaa24 dPW/wVybc3lSVY65Tptmrf776qESS3FGoqEWc1FxIgB/H/s+1QMAAA== X-CMS-MailID: 20230915095126eucas1p2cf75674dab8a81228f493a7200f4a1ba X-Msg-Generator: CA X-RootMTR: 20230915095126eucas1p2cf75674dab8a81228f493a7200f4a1ba X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20230915095126eucas1p2cf75674dab8a81228f493a7200f4a1ba References: <20230915095042.1320180-1-da.gomez@samsung.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Fri, 15 Sep 2023 02:55:37 -0700 (PDT) The commit [1] replaced all BLOCKS_PER_PAGE in favor of the generic PAGE_SECTORS but definition was not removed. Drop it as unused macro. [1] e09764cff44b5 ("shmem: quota support"). Signed-off-by: Daniel Gomez Reviewed-by: Luis Chamberlain --- mm/shmem.c | 1 - 1 file changed, 1 deletion(-) diff --git a/mm/shmem.c b/mm/shmem.c index 13c27c343820..8b3823e4d344 100644 --- a/mm/shmem.c +++ b/mm/shmem.c @@ -84,7 +84,6 @@ static struct vfsmount *shm_mnt; =20 #include "internal.h" =20 -#define BLOCKS_PER_PAGE (PAGE_SIZE/512) #define VM_ACCT(size) (PAGE_ALIGN(size) >> PAGE_SHIFT) =20 /* Pretend that each entry is of this size in directory's i_size */ --=20 2.39.2