From patchwork Sat Oct 28 21:15:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Gomez X-Patchwork-Id: 13439575 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 900ABC4332F for ; Sat, 28 Oct 2023 21:15:50 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 670256B0311; Sat, 28 Oct 2023 17:15:46 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 5F9486B0317; Sat, 28 Oct 2023 17:15:46 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 44AED6B0313; Sat, 28 Oct 2023 17:15:46 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 2E7B06B0311 for ; Sat, 28 Oct 2023 17:15:46 -0400 (EDT) Received: from smtpin28.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 05C0240285 for ; Sat, 28 Oct 2023 21:15:46 +0000 (UTC) X-FDA: 81396127092.28.8BF89A2 Received: from mailout1.w1.samsung.com (mailout1.w1.samsung.com [210.118.77.11]) by imf11.hostedemail.com (Postfix) with ESMTP id 1478440002 for ; Sat, 28 Oct 2023 21:15:42 +0000 (UTC) Authentication-Results: imf11.hostedemail.com; dkim=pass header.d=samsung.com header.s=mail20170921 header.b=p25vRFik; spf=pass (imf11.hostedemail.com: domain of da.gomez@samsung.com designates 210.118.77.11 as permitted sender) smtp.mailfrom=da.gomez@samsung.com; dmarc=pass (policy=none) header.from=samsung.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1698527743; 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=KNdASYDMYBghyPawUeQa4sXu1VB/4Vbh5nAWx6WaBVc=; b=vQ6zMcmpImJubPBbS7R+x/Z9o2oyM+g6uqexB40G7EKI9jf++0VW55Dd/xHWVU+kd8yzad Edrn0Dztmf+LU+oabgkEbMvQNw+fYM4k7qloN3u+wZpu4IRUuIwtRq2OEq6WmAeeDo+kV7 SnYZJyrfqfDcMbSudH7GMYPwqB0khLI= ARC-Authentication-Results: i=1; imf11.hostedemail.com; dkim=pass header.d=samsung.com header.s=mail20170921 header.b=p25vRFik; spf=pass (imf11.hostedemail.com: domain of da.gomez@samsung.com designates 210.118.77.11 as permitted sender) smtp.mailfrom=da.gomez@samsung.com; dmarc=pass (policy=none) header.from=samsung.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1698527743; a=rsa-sha256; cv=none; b=3P8JH9tyxMlRV50DFeQ8Rrkg+fPkZsHToH1fZVX4q1Krm+P3Jn6Vpzp1E4pfk2eaHXSOz+ GvCxgLdUB+MOxxVEVXtK12J8ccxu6xHj2KVyBQMLUgpIBzD0VmgQb3FqcDaDcGR5lFfV3N scSOtg1l7MOKU5fQ6WT8EQVfij62gpE= Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout1.w1.samsung.com (KnoxPortal) with ESMTP id 20231028211541euoutp01261a2dfa3dbc804e15f033bd645f2a08~SYftopvc32292822928euoutp01S for ; Sat, 28 Oct 2023 21:15:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20231028211541euoutp01261a2dfa3dbc804e15f033bd645f2a08~SYftopvc32292822928euoutp01S DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1698527741; bh=KNdASYDMYBghyPawUeQa4sXu1VB/4Vbh5nAWx6WaBVc=; h=From:To:CC:Subject:Date:In-Reply-To:References:From; b=p25vRFikG8/u08B+ePf6VvgHwV8NxkrJZH/Gsn8m+A4lT/HMsDTVuZiosdX3Q/nYP 4pTukVv2uwz4EsY7oichDyeSqZ7xpFNFT2zF1JcaGs7iKcTK7FxWMMW++fF5boQcA6 LYREJzDKHJlJFelI5RdkTvhHCEVS+bsyGNhQaI6M= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20231028211541eucas1p2956f217a1965e3854c430386af01e412~SYfs9xZLz1224812248eucas1p24; Sat, 28 Oct 2023 21:15:41 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 2B.81.42423.DF97D356; Sat, 28 Oct 2023 22:15:41 +0100 (BST) Received: from eusmtrp2.samsung.com (unknown [182.198.249.139]) by eucas1p1.samsung.com (KnoxPortal) with ESMTPA id 20231028211540eucas1p1fe328f4dadd3645c2c086055efc872ad~SYfslkcX60616106161eucas1p1P; Sat, 28 Oct 2023 21:15:40 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp2.samsung.com (KnoxPortal) with ESMTP id 20231028211540eusmtrp2885c51cf5903a19a29a6bef124f4dabc~SYfslCIHP1141411414eusmtrp2a; Sat, 28 Oct 2023 21:15:40 +0000 (GMT) X-AuditID: cbfec7f2-a3bff7000002a5b7-be-653d79fdc682 Received: from eusmtip2.samsung.com ( [203.254.199.222]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id EC.F0.25043.CF97D356; Sat, 28 Oct 2023 22:15:40 +0100 (BST) Received: from CAMSVWEXC01.scsc.local (unknown [106.1.227.71]) by eusmtip2.samsung.com (KnoxPortal) with ESMTPA id 20231028211540eusmtip266e8e32a92786e265d14e5903bc6464c~SYfsYR64B1182011820eusmtip2o; Sat, 28 Oct 2023 21:15:40 +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; Sat, 28 Oct 2023 22:15:40 +0100 Received: from CAMSVWEXC02.scsc.local ([::1]) by CAMSVWEXC02.scsc.local ([fe80::3c08:6c51:fa0a:6384%13]) with mapi id 15.00.1497.012; Sat, 28 Oct 2023 22:15:39 +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: [RFC PATCH 03/11] shmem: drop BLOCKS_PER_PAGE macro Thread-Topic: [RFC PATCH 03/11] shmem: drop BLOCKS_PER_PAGE macro Thread-Index: AQHaCePme5B6ldUfmUi6e3JGjkM9rA== Date: Sat, 28 Oct 2023 21:15:39 +0000 Message-ID: <20231028211518.3424020-4-da.gomez@samsung.com> In-Reply-To: <20231028211518.3424020-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+NgFjrOKsWRmVeSWpSXmKPExsWy7djP87p/K21TDU7tYLeYs34Nm8Xqu/1s Fpef8Fk8/dTHYrH3lrbFnr0nWSwu75rDZnFvzX9Wi11/gEpvTHjKaLHs63t2i90bF7FZ/P4x h82B12N2w0UWjwWbSj02r9DyuHy21GPTqk42j02fJrF7nJjxm8Xj8ya5A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ld57JW6OnOOvPvWppnGlhvA HRHjuCWzvHsOR/6/1p1RUSnmO3cosRRnJBpqMRcVJwIAW8mX/9YDAAA= X-CMS-MailID: 20231028211540eucas1p1fe328f4dadd3645c2c086055efc872ad X-Msg-Generator: CA X-RootMTR: 20231028211540eucas1p1fe328f4dadd3645c2c086055efc872ad X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20231028211540eucas1p1fe328f4dadd3645c2c086055efc872ad References: <20230919135536.2165715-1-da.gomez@samsung.com> <20231028211518.3424020-1-da.gomez@samsung.com> X-Rspamd-Queue-Id: 1478440002 X-Rspam-User: X-Stat-Signature: ic3erutxgk5mokphpmd4c7ytq8fobubr X-Rspamd-Server: rspam01 X-HE-Tag: 1698527742-875147 X-HE-Meta: U2FsdGVkX1/maJ8GOuCuU4/woN/35i1mrOb8VOuXPOYVFpyGycQ6dXcU68toOcb5GIliiPqWZZ/3Q46vpktKTTdwDGfOl4Cjk90S/e9roCTJl7bDBSe/bhI7frnWIHobKlf6qUFenZ1I/G2DkZ8kUyMpli81a/T+cEIqyClBouSglNLZftWmrLOee2kWUK0MD+qOy6wNFpdEN/J1tkDnvrg/WIH1B5DFpJ/Z05rDbY6Yc03Pg+A+Nt5rUjJ0MryPodtBxlpYKHt24tIpL8GDwUq5e68bHSqNXkBi4YbKv8mplH78GXPiF05+WMOLL591it7REztcQo8gAsN2SqPCrh7ZBeplFDw7kU5LAttPlIow42ER8BIR9orfm/fR8A5vCRtIAdZVH+UrsLqBxF1LAZA5A8FPdEQAdD5pW5lW4HrWTCnZL4ng7sjFzRHYY6+r0DkqTC0HEAQlVnWVBf86xBRE2VEU9NFkVAaheuBFgimRIyobF8p9QMbjFoeSfhCGOmbRYdmZbhI+SS6iR93RJ5XCLIh5kAWnwBYatLChiqhtexBI5QP9Dq3GKCwIzUGPhP5PnuUvUu57rr+T6iEPMkEpLHD2EG2+VgIdd+6XD6kxJgcSBZ8rH/uJBP3aj+j92b9XqOKVgJEca9qpjLTW0GMGpcTwjoKArR8E3EFhUgn7EmOyAy3f9oQ5ht8iqlgp64AwJp0z2ftbFfF+2Y6/aHGIY4I1Ckdl4vyKAUuQ5MpEhFa5jceH4CIUbS9z/eeLYdnI+CbbBb6AyqWVFkzD6Kx/x35qjhRNK2env7uCbMlQfUSypbJR8hkqbyV0BHIiyUBF830KGNYIswc6bcPkgkYYIGGN5lOaardpCTGYR0RZJ2dy7/oo4tR1EbKPZiLoNP5gxJD5+uPG6JQoegeeqKDoPmkrnnnf8Z1AXtJVkoP2pHDIjlAKp0ZJlakZzU8tCpkW8IqMXNLKcTGHYbM GvbWpyTB 9AcgGBPxmseU+vUx3vhqT/XMLQXulcvjg/rhi3YOZplGmbGeVRTExIZ1rMpVK0R3slbrhUh6xKDq8giWezb4QCN6sHnr5CsBZLhTxjj8Y6UWVs7754N+eI1dyeQ73zGGkHs9Jr5cea7IMeV/v6tvIFeCBHnvaFZtOhTA7e6qIa72AKvKWUNg6KQL8XFbxzn3Wb/u5ZOUwMPNxvXw= 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: List-Subscribe: List-Unsubscribe: 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 0d1ce70bce38..a2ac425b97ea 100644 --- a/mm/shmem.c +++ b/mm/shmem.c @@ -84,7 +84,6 @@ static struct vfsmount *shm_mnt __ro_after_init; #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 */