Message ID | 20230915095042.1320180-3-da.gomez@samsung.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 3CB2EEE644C for <linux-mm@archiver.kernel.org>; Fri, 15 Sep 2023 09:51:34 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 50B536B024A; Fri, 15 Sep 2023 05:51:33 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 3F8A66B032E; Fri, 15 Sep 2023 05:51:33 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 223BF6B0330; Fri, 15 Sep 2023 05:51:33 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 0DB6E6B024A for <linux-mm@kvack.org>; Fri, 15 Sep 2023 05:51:33 -0400 (EDT) Received: from smtpin13.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id ADF41140F8F for <linux-mm@kvack.org>; Fri, 15 Sep 2023 09:51:32 +0000 (UTC) X-FDA: 81238364424.13.BB50892 Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by imf30.hostedemail.com (Postfix) with ESMTP id 49FD980019 for <linux-mm@kvack.org>; Fri, 15 Sep 2023 09:51:29 +0000 (UTC) Authentication-Results: imf30.hostedemail.com; dkim=pass header.d=samsung.com header.s=mail20170921 header.b=dRnQE4X3; dmarc=pass (policy=none) header.from=samsung.com; spf=pass (imf30.hostedemail.com: domain of da.gomez@samsung.com designates 210.118.77.12 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=1694771489; 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=pQ5HIMyPnnwhcYJ76rc1mPPc+k+o81B2sKXtPyg4zdw=; b=3emwn8XobmyVJSmq7R+wFY7/6LW+/C/zBT76EZ3Ox6FXVKkxkrycKPxPpZdeltDjcrtUML m/v5/iB8XYOPkzlrgf5oLErrXJxb3XN4L6puDcUbxYzn0JIRjp+yBjYrNQnFeLZCfLG66K Zo5HgljrM+00Vxlv3NRV6SONXW97vng= ARC-Authentication-Results: i=1; imf30.hostedemail.com; dkim=pass header.d=samsung.com header.s=mail20170921 header.b=dRnQE4X3; dmarc=pass (policy=none) header.from=samsung.com; spf=pass (imf30.hostedemail.com: domain of da.gomez@samsung.com designates 210.118.77.12 as permitted sender) smtp.mailfrom=da.gomez@samsung.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1694771489; a=rsa-sha256; cv=none; b=6V6xahOiBXDGTCCMjB2c9fBaXmAioIw1+2MWMxJ9DMZ+ozeId4NwurI4GOKwRnHNcGnYqE j6ft22IWWHzvTb7zFvc6Zn5zMp+stnGBz52cEmoPJ3HKBpboDA+cGsmP4S8XFXovpj/zG5 RLPxX/C36JxZMv7lHzi0tUZDY+sxHRU= Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20230915095127euoutp0229001aef2c1fc29bf144af6eb656b34a~FCbAsA5-y1204712047euoutp02S for <linux-mm@kvack.org>; Fri, 15 Sep 2023 09:51:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20230915095127euoutp0229001aef2c1fc29bf144af6eb656b34a~FCbAsA5-y1204712047euoutp02S 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 <da.gomez@samsung.com> To: "minchan@kernel.org" <minchan@kernel.org>, "senozhatsky@chromium.org" <senozhatsky@chromium.org>, "axboe@kernel.dk" <axboe@kernel.dk>, "djwong@kernel.org" <djwong@kernel.org>, "willy@infradead.org" <willy@infradead.org>, "hughd@google.com" <hughd@google.com>, "akpm@linux-foundation.org" <akpm@linux-foundation.org>, "mcgrof@kernel.org" <mcgrof@kernel.org>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, "linux-block@vger.kernel.org" <linux-block@vger.kernel.org>, "linux-xfs@vger.kernel.org" <linux-xfs@vger.kernel.org>, "linux-fsdevel@vger.kernel.org" <linux-fsdevel@vger.kernel.org>, "linux-mm@kvack.org" <linux-mm@kvack.org> CC: "gost.dev@samsung.com" <gost.dev@samsung.com>, Pankaj Raghav <p.raghav@samsung.com>, Daniel Gomez <da.gomez@samsung.com> 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/HM3l5UGxOpp8dTTVqinrVBPW5EHkFLgRqnouGiKDlBQiRJaFkerFNGSXfFxOjD5 2R5Zm0arQM7gV4kBsDBgABBji1x5aBCL4vOiZAcOUsr4HUqVnKINwB1DRG48cVDLLj4eLUug 9lDUXkr5z2VhjnOTWH6CHp+siDeCSBfKsqFyvYPWvL08vujKj4Qkl6/ybto3RhTu/URrXm3x MvV4hhVIIxVyaU5ZQLRoFurhcXZNyMuh39LL9aH9Bq/kAjJg6UbfA7maRN9mzwvPTSiiOeI1 Z+zLTYct/ML4PfXrb3R4N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r361KegsJSb2a9fxgxwfbigj8B 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> <CGME20230915095126eucas1p2cf75674dab8a81228f493a7200f4a1ba@eucas1p2.samsung.com> X-Rspamd-Server: rspam09 X-Rspamd-Queue-Id: 49FD980019 X-Stat-Signature: 4zyze6w7m177b16r6qefk3fyz68yj1ki X-Rspam-User: X-HE-Tag: 1694771489-819830 X-HE-Meta: U2FsdGVkX1/r3RXf979gO52HQfvoKU4CMb/XgCAUZ2+kltTU/6HJpoRCLbYWiRLjXnaiavfhashN0fMjca9fls/SrN29TDrnjlFSKKL0jPPAJtA1jbgqSfN5vbRpMNSwqI7uM8CyrMFISO43cGQndTbMA+2Dy3BPQLmayTq0Wcc5bxp4EsNFADdHUDB8fjZgqwKYB9eqMJYZ1kCwbEpYIEJxKiF5a1jNojbgO8tvCT+q7TzVJ0FF8cVKrUXwFRgZ+ytRF6KU8Fl9+EccOmMHFVdptqIhhkKTZvBFk/vc1skXq6UqqfVJUxOaGsRJrqU33mUUn3uZCj2Ocq6IW1Py2wa9OZsN9GnSsgCkWA1H9Jhd2GVd635itLJfXviZsk/noAKbceg8uO8lGMCAgKTBDMf8sbWyaw21V443EIWvasumxWk8Lj3OuNqCyErxjswP1mRsACNMh07YZjaP7uiqb6L2cSy6mrWT2hj2odfKJYcMIiMRPX4Q3gb9pR9byp0LwtAV3yOH5cmPy3CV38CgrkA93NIuzWH88cS5/93xxVJ5z4TIQEjSPxOqs6pEBeSewoLvqPwTuRHCdVdGzYQ1JZBQs9iHq74wNlihddeVWzcCpbIzNH28US1xB0K2XdDGuzSl4vbubpDToilLvs201c+pMlxE0BWDfQWpt7OKKRJw/u/tA8QxhjXebpC3C+qsdRZ4hE01ooDEwhod1WkYqQ0v0hPgf9wXJ385VytCDUBfTJCnopRTwAUme/vY1Rjvt3++STTj6DWlKAvVwXjh7XexpAckLuKUV+avmUnnRb17b3iKTEACcd0P99LbX2EVxLliF1n07q/pXjWv2+Bfa/t2mnVtbzA65TsfQcq4+peGw+3+pAijLHBa24Sb+TmpIDXirnKYbvcSNyIuYasD7uXLMnd3czLNPuUfcqaYaK5qHuTMwWeXkaMf+eBV9/G9vEJhxU+powl5B89LKml gGWZuRYO /4Xo5+FQDnty9Q3D62pLfH9BTRCj97nPT4zwN3nqCo+ybWUyRx/HHz8bWD4N+1G5vK4pNqbNE644MvSw89JYCw9yqcNeELI5MDtJJY6BEWZinQLwoi/zi0zUee9LQNESJ9U5kzDWr05YE/3TuzKk2ZDi+qHaKmFk4BeEo3sxEL0FUvhez5hphmQ1KABBKVWwNswJjQYUHHIMJmeE= 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: <linux-mm.kvack.org> |
Series |
[1/6] filemap: make the folio order calculation shareable
|
expand
|
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; #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 */