From patchwork Tue Sep 19 13:55:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Gomez X-Patchwork-Id: 13391491 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id F1BFFCD5BC2 for ; Tue, 19 Sep 2023 13:55:58 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id DA68C6B052D; Tue, 19 Sep 2023 09:55:55 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id D2D9C6B052E; Tue, 19 Sep 2023 09:55:55 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B06F96B052F; Tue, 19 Sep 2023 09:55:55 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 9FF246B052D for ; Tue, 19 Sep 2023 09:55:55 -0400 (EDT) Received: from smtpin28.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 6DEB380D88 for ; Tue, 19 Sep 2023 13:55:55 +0000 (UTC) X-FDA: 81253495470.28.FBA1EB3 Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by imf24.hostedemail.com (Postfix) with ESMTP id 7777E180006 for ; Tue, 19 Sep 2023 13:55:50 +0000 (UTC) Authentication-Results: imf24.hostedemail.com; dkim=pass header.d=samsung.com header.s=mail20170921 header.b=vKHZW4TP; dmarc=pass (policy=none) header.from=samsung.com; spf=pass (imf24.hostedemail.com: domain of da.gomez@samsung.com designates 210.118.77.11 as permitted sender) smtp.mailfrom=da.gomez@samsung.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1695131751; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=FJQ8bvj/9Vs0utzuzFMcJ8GvK3wVEgVmfOOT/zQHcR0=; b=cGDB6dOhgID0JETEehXqZl8dk69kx4/ujKH/zZf07bizlzEUCi8eQSEsPRBgtaX4mbwP/f e2q4rOna70deUoBH9+xPCRzFLjWk07CMVKRXZrL5N8WL/2Gf4qf+NcdPbU1jhG2XxyblSn RBPGRrCb2JqlaKUUzNrUdqDX1ZDKKcQ= ARC-Authentication-Results: i=1; imf24.hostedemail.com; dkim=pass header.d=samsung.com header.s=mail20170921 header.b=vKHZW4TP; dmarc=pass (policy=none) header.from=samsung.com; spf=pass (imf24.hostedemail.com: domain of da.gomez@samsung.com designates 210.118.77.11 as permitted sender) smtp.mailfrom=da.gomez@samsung.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1695131751; a=rsa-sha256; cv=none; b=A/nPalRNp6O+ExXjZY2LTfgXhVdzkPS1wSR57hBiHGNQVsGauNRAzK2kI5H00EBFup8gi6 9aMK5Zw09sDIb0MWMz1ny4YYpbtkANJBXxq4xXsBZr6VKm7tthY4rC1ON2P1I14ylKo2IP XNujYCUQ5z8vOGiQqht1HTu7O8UTjyc= Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20230919135547euoutp0169b4f6265a2b3b5ef604fed3d6875690~GUVfxGdLC0107701077euoutp01x for ; Tue, 19 Sep 2023 13:55:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20230919135547euoutp0169b4f6265a2b3b5ef604fed3d6875690~GUVfxGdLC0107701077euoutp01x DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1695131747; bh=FJQ8bvj/9Vs0utzuzFMcJ8GvK3wVEgVmfOOT/zQHcR0=; h=From:To:CC:Subject:Date:In-Reply-To:References:From; b=vKHZW4TPgFVoUEf/pL3g+3a9aJEqv7NQpkuXCtaguJwOqoLs3rzFGVmhxP/9/MVpf H4uRdQpVMKAQeED6OuJctfd746zmIPtwbvURj6wWKu05Dx4eaLFf9h3FIY/bbWZNQe yUmaL/tk4T7KT78vIS7YHzgOKOmspvcSI/TYm70U= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20230919135547eucas1p2511a5d8752168f2baa949be8ea4c10a6~GUVfeg3WY1636016360eucas1p2j; Tue, 19 Sep 2023 13:55:47 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 3F.7E.11320.368A9056; Tue, 19 Sep 2023 14:55:47 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20230919135547eucas1p2777d9fde904adf4c2d0ac665d78880c1~GUVfBq4u22317523175eucas1p27; Tue, 19 Sep 2023 13:55:47 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20230919135547eusmtrp11e24cd154302622eacc81ec4f96cfcad~GUVe-9IqC2584925849eusmtrp1G; Tue, 19 Sep 2023 13:55:47 +0000 (GMT) X-AuditID: cbfec7f4-97dff70000022c38-b6-6509a863472c Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id A5.C9.10549.268A9056; Tue, 19 Sep 2023 14:55:46 +0100 (BST) Received: from CAMSVWEXC01.scsc.local (unknown [106.1.227.71]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20230919135546eusmtip1c60ef7b891afff594b8a2c51fcc57d87~GUVewBDRA1313713137eusmtip18; Tue, 19 Sep 2023 13:55:46 +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; Tue, 19 Sep 2023 14:55:46 +0100 Received: from CAMSVWEXC02.scsc.local ([::1]) by CAMSVWEXC02.scsc.local ([fe80::3c08:6c51:fa0a:6384%13]) with mapi id 15.00.1497.012; Tue, 19 Sep 2023 14:55:46 +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 v2 1/6] shmem: drop BLOCKS_PER_PAGE macro Thread-Topic: [PATCH v2 1/6] shmem: drop BLOCKS_PER_PAGE macro Thread-Index: AQHZ6wD8QPBGKC1ahkW+sk1T2Ar7wQ== Date: Tue, 19 Sep 2023 13:55:45 +0000 Message-ID: <20230919135536.2165715-2-da.gomez@samsung.com> In-Reply-To: <20230919135536.2165715-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] MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrFKsWRmVeSWpSXmKPExsWy7djPc7rJKzhTDY73y1rMWb+GzWL13X42 i8tP+Cyefupjsdh7S9tiz96TLBaXd81hs7i35j+rxa4/O9gtbkx4ymix7Ot7dovdGxexWfz+ MYfNgddjdsNFFo8Fm0o9Nq/Q8rh8ttRj06p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FR5krL2/6uuKwxSNdLmnojPNz+s n80imsDqYvtcTVWw6t7Owi2NJ++sUlBiKc5INNRiLipOBACISM272QMAAA== X-CMS-MailID: 20230919135547eucas1p2777d9fde904adf4c2d0ac665d78880c1 X-Msg-Generator: CA X-RootMTR: 20230919135547eucas1p2777d9fde904adf4c2d0ac665d78880c1 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20230919135547eucas1p2777d9fde904adf4c2d0ac665d78880c1 References: <20230919135536.2165715-1-da.gomez@samsung.com> X-Rspam-User: X-Stat-Signature: 3j4jkt56mmzyhqeje75onxwqihwe6777 X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 7777E180006 X-HE-Tag: 1695131750-433582 X-HE-Meta: U2FsdGVkX1/1QL0VUFfgwpiBXdt1jC+e0cL2HhfF9KtMXYepDUt5BjOrGb4GUwl6A+luwR9abeM+f/YZ0sWsd6fc3wusKVaiDz5txvuBfX/ke/SpsBUCWWxzpGyoKPCcwn9JBixK/xMfBxrTMmpoiNFK3aM/7Vs2U0D9cIyuzqliewvkN7w1Ns2IXegt67jhy0EnrH+lNnJcZLCQrBT/I3glegupNKCqX7mukbhJpXMeE6MWq5ObFO8PHVKl10mlmGO/ptbl5KYcjFQ7JfdO2Vrq4PovNZBFiwefUsnoMNuCHxuEncqGcMbn0cwlKVhOhY68S7lVJLwRpb+GgSRxk00MmnAdonx/Jy+9+/yYsW3jIjqjC/hgVvQZZ3wa6UJj+9Jdc1TwS9Hbu/2lB9lq6uOL3HoaTcTpCv3lzElyDHSKQYFW5xcS2NcjAy4yM165RfFwN8EC5yTgRprP2Mfz1WTJ2J5CwjSYGq+2eFrXx0v5EGStlxssmerjMTV0sfHxgnwHZeeVDjLayCVFyEoP+eG1Fv/GvKtckCrTjw2xrqzoPYIqiuhgQinHBaqhiwQ5mKPXBn3akkWIJOVL6P/+lZgbX3ayCoiOXvfP5Cav3xGreiK15ISoVmejjTMJCdXjFbHohed6R/dLctq2r8/6ZBooDad7BHSoy/juGiJ+mV4IomSrQQgY9erQrpiTuoFzfGoxDO8AFDJfdDP1K0amPCBds0ZxlewtnT2rup6GmYn0IUnN5RDnh1Bc3j8b+ndYKxXe+riVRyKMPlFl2i2cS4nz7sE1nfcopTC+drEoG0FHenhW5Irn5BudkRXOgv1c4AYLMwAdmkwtNjEZgsiATWn2gG1//LT4ERhaeCrwA9oD8YYpo3ZexM/FsDEB+CehyaKkmVZIzzAT37ccD9ZmwE5ikV7TT+oM7IUbBQ9KI5o/MAhh7LJcZw2BDiSBFx2kz1ManNRXG0dc4NfYRwT 9A7eJEyg /e9G6t1Vx129VSuA7uBfGNz8ZJiViVQbHibOHrawk29Sboim+0zQ9KoY8mlOcO9TNLI8yaE37tZd04FuWRvfFzY6i+XL/U0mtxnMw0kBzaunzoKxfUCv4pb0vbNz4q0mgVlFGdHEgQH98nB5pYW8R588OwgDL8inFK5i8mqTB6aLUU7MJCyHUa5nIMvG0KpqMBdADVC/zVxOuzeU= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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 be050efe18cb..de0d0fa0349e 100644 --- a/mm/shmem.c +++ b/mm/shmem.c @@ -84,7 +84,6 @@ static struct vfsmount *shm_mnt; #include "internal.h" -#define BLOCKS_PER_PAGE (PAGE_SIZE/512) #define VM_ACCT(size) (PAGE_ALIGN(size) >> PAGE_SHIFT) /* Pretend that each entry is of this size in directory's i_size */