Message ID | 20240209142901.126894-7-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 618B8C4828F for <linux-mm@archiver.kernel.org>; Fri, 9 Feb 2024 14:29:24 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C990A6B0087; Fri, 9 Feb 2024 09:29:12 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id BD2016B0093; Fri, 9 Feb 2024 09:29:12 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0D92A6B0092; Fri, 9 Feb 2024 09:29:12 -0500 (EST) 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 B845F6B0085 for <linux-mm@kvack.org>; Fri, 9 Feb 2024 09:29:11 -0500 (EST) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 962658105D for <linux-mm@kvack.org>; Fri, 9 Feb 2024 14:29:11 +0000 (UTC) X-FDA: 81772497702.03.68956B3 Received: from mailout2.w1.samsung.com (mailout2.w1.samsung.com [210.118.77.12]) by imf11.hostedemail.com (Postfix) with ESMTP id 96BE240010 for <linux-mm@kvack.org>; Fri, 9 Feb 2024 14:29:08 +0000 (UTC) Authentication-Results: imf11.hostedemail.com; dkim=pass header.d=samsung.com header.s=mail20170921 header.b=VXwvMZgq; spf=pass (imf11.hostedemail.com: domain of da.gomez@samsung.com designates 210.118.77.12 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=1707488948; a=rsa-sha256; cv=none; b=cXR3lgZydwmB7w24SovTAysjGv/q/ZldbyQqbBluO7yj51Fn910sNn/NxF9egkGEazJNAE rPYzxJ9jdNtiHB2zluzuSwT8l8Xo9tCt6flfi41cXjMSDwl3jnQFwaHvg4AzSFzbo3Mv3l INvURwUboxr+jo5RWrXhGv2suSUf4aM= ARC-Authentication-Results: i=1; imf11.hostedemail.com; dkim=pass header.d=samsung.com header.s=mail20170921 header.b=VXwvMZgq; spf=pass (imf11.hostedemail.com: domain of da.gomez@samsung.com designates 210.118.77.12 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=1707488948; 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=oOOPXQ1C4QLRnGizBlTW9/7mF80l1aSAxMsYloK3g+M=; b=5/MA9LOweICunh6WKnV/LsDKK5D2AqBF5gx8NS63Ali2tcCdIGEo5O/mpuc8ocLc2WuXqu eIFPL9TKP5sVNgeT3fSDYKbRBi74hBYMSQ5aRTJWs9+ZNo2iy4Iw8OGLayFWR8olCMum+F NjGkTLPR8IK2xN9zsP3rfty3zUAoQI0= Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20240209142907euoutp029584dc25e294c1a1f4a7cf48bc33d514~yOCamKXhS2142421424euoutp02M for <linux-mm@kvack.org>; Fri, 9 Feb 2024 14:29:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20240209142907euoutp029584dc25e294c1a1f4a7cf48bc33d514~yOCamKXhS2142421424euoutp02M DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1707488947; bh=oOOPXQ1C4QLRnGizBlTW9/7mF80l1aSAxMsYloK3g+M=; h=From:To:CC:Subject:Date:In-Reply-To:References:From; b=VXwvMZgqJhlzJrEbIdatR1upBBp2x0B0+/RtlptwGIxcD8Harg5N3Nq6kHxKB/GM3 VIz96cDx5AmzDsB+lRObwNrhSQb7C9zQCrxGXbhD7YEE1CqhR61cKdNQBj19jlo5au mgLa/TVfh9EinFtfloyomR5OIR+3qwQRH59aVKL8= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20240209142907eucas1p2072a6f2e9410ced2ddb2e9a8c7628edf~yOCaQzec22618526185eucas1p2C; Fri, 9 Feb 2024 14:29:07 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id FD.F5.09814.2B636C56; Fri, 9 Feb 2024 14:29:06 +0000 (GMT) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20240209142906eucas1p2c31598bf448077f04eef66319ae2f3a1~yOCZzbmxq0060200602eucas1p2_; Fri, 9 Feb 2024 14:29:06 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20240209142906eusmtrp1552e5b8ad10b0382bfcbdd74d7755208~yOCZyxTrv0528405284eusmtrp19; Fri, 9 Feb 2024 14:29:06 +0000 (GMT) X-AuditID: cbfec7f4-711ff70000002656-42-65c636b241f9 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id B2.B3.10702.2B636C56; Fri, 9 Feb 2024 14:29:06 +0000 (GMT) Received: from CAMSVWEXC02.scsc.local (unknown [106.1.227.72]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20240209142906eusmtip11fa07a35bc26d35a2936315444ab40e3~yOCZorTLt0114301143eusmtip1L; Fri, 9 Feb 2024 14:29:06 +0000 (GMT) Received: from CAMSVWEXC02.scsc.local (2002:6a01:e348::6a01:e348) by CAMSVWEXC02.scsc.local (2002:6a01:e348::6a01:e348) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 9 Feb 2024 14:29:05 +0000 Received: from CAMSVWEXC02.scsc.local ([::1]) by CAMSVWEXC02.scsc.local ([fe80::3c08:6c51:fa0a:6384%13]) with mapi id 15.00.1497.012; Fri, 9 Feb 2024 14:29:05 +0000 From: Daniel Gomez <da.gomez@samsung.com> To: "viro@zeniv.linux.org.uk" <viro@zeniv.linux.org.uk>, "brauner@kernel.org" <brauner@kernel.org>, "jack@suse.cz" <jack@suse.cz>, "hughd@google.com" <hughd@google.com>, "akpm@linux-foundation.org" <akpm@linux-foundation.org> CC: "dagmcr@gmail.com" <dagmcr@gmail.com>, "linux-fsdevel@vger.kernel.org" <linux-fsdevel@vger.kernel.org>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, "linux-mm@kvack.org" <linux-mm@kvack.org>, "willy@infradead.org" <willy@infradead.org>, "hch@infradead.org" <hch@infradead.org>, "mcgrof@kernel.org" <mcgrof@kernel.org>, Pankaj Raghav <p.raghav@samsung.com>, "gost.dev@samsung.com" <gost.dev@samsung.com>, Daniel Gomez <da.gomez@samsung.com> Subject: [RFC PATCH 6/9] shmem: set folio uptodate when reclaim Thread-Topic: [RFC PATCH 6/9] shmem: set folio uptodate when reclaim Thread-Index: AQHaW2RUZLM8QyQXnk2QIeewqLmB5Q== Date: Fri, 9 Feb 2024 14:29:03 +0000 Message-ID: <20240209142901.126894-7-da.gomez@samsung.com> In-Reply-To: <20240209142901.126894-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.67] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrHKsWRmVeSWpSXmKPExsWy7djP87qbzI6lGixYZ2kxZ/0aNovXhz8x Wpzt+81mcXrCIiaLp5/6WCxmT29mstiz9ySLxeVdc9gs7q35z2pxY8JTRovzf4+zWvz+MYfN gcdj56y77B4LNpV6bF6h5bFpVSebx6ZPk9g9Tsz4zeJxZsERdo/Pm+Q8Nj15yxTAGcVlk5Ka k1mWWqRvl8CV8WDpN5aCGWwVu7vvMzUw9rN2MXJySAiYSEy68Zu9i5GLQ0hgBaNE2/RfzBDO F0aJ9o2vWCCcz4wSW96/YYRp2fjnKxtEYjlQ1Y5tjHBVR47dARssJHCaUeLgngC4wefWNYK1 swloSuw7uQlso4jAc0aJ1t0fwRxmgZvMEteunmcDqRIWsJfY9+gP2CgRAReJW98msUDYehJX F34Ai7MIqEjMm7ISKM7BwStgJTFrES9ImFPAWmLeo/VgYxgFZCUerfzFDmIzC4hL3Hoynwni B0GJRbP3MEPYYhL/dj1kg7B1JM5efwL1p4HE1qX7WCBsRYmOYzfZIOboSdyYOgXK1pZYtvA1 2BxeoJknZz4BB5iEQBuXxL8tC6GGukgsPrEWyhaWeHV8CzuELSNxenIPywRG7VlI7puFZMcs JDtmIdmxgJFlFaN4amlxbnpqsVFearlecWJucWleul5yfu4mRmCSO/3v+JcdjMtffdQ7xMjE wXiIUYKDWUmEN2TJkVQh3pTEyqrUovz4otKc1OJDjNIcLErivKop8qlCAumJJanZqakFqUUw WSYOTqkGJk7DbxLFMQ4z67InWjw5UfZ57nONuvhfj5WbrFyPrhL2N+g8UXEvmpFbalr3sZcp e6cvDeSf4u56zsXwRsvbsGtGXqbaYcnPF7yb8FXo+zGJC/GLDm6/fcH2aY339boDLBfNvhlV czSeceJ47e7V1Jrc0FbFLPFz1Z0041yGt42fPfwkXm26m/n207f83wU3MmQ2G26YdGPW19So 1axrGpX+OU50eLK7UeOX7zyuoizJbQq37r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Pfj3K58dXvNq6/uBf7f8jrIt27Kozenvwdv +2S+0ObVt7s/bU4K7zGbplkzg4F7y0fZK3/KJiguzb166Ns8A5PamyvT9Y55GkYH7pjoyTgz Y/GcOcW8S47oLdYO+3Oh6Z+Jyt6WOadSyiX6d3QqP96cO51dV1XvvGTkvAfRObvf7Xyieum1 SGzs7fRg/yJ5tj+Mybyp2R1WtzOvWQt1H9jHY/m85+H/H8nK+f4st9eyr28/LRe2Sp1nj56q 3ddt4rY2EWHvv9jkCJ82+r3jkNkJ36JlJ9cnKLEUZyQaajEXFScCADcGFbrcAwAA X-CMS-MailID: 20240209142906eucas1p2c31598bf448077f04eef66319ae2f3a1 X-Msg-Generator: CA X-RootMTR: 20240209142906eucas1p2c31598bf448077f04eef66319ae2f3a1 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20240209142906eucas1p2c31598bf448077f04eef66319ae2f3a1 References: <20240209142901.126894-1-da.gomez@samsung.com> <CGME20240209142906eucas1p2c31598bf448077f04eef66319ae2f3a1@eucas1p2.samsung.com> X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 96BE240010 X-Stat-Signature: q3x55zoxtkgo6pyk5pecm4i4886d48uo X-Rspam-User: X-HE-Tag: 1707488948-545201 X-HE-Meta: U2FsdGVkX1+cyz2Pp0GWN1vZynZyeqOPFhxSbXRgEfUASEkmq8pUNweMDd8mrIOHLANpo0DPuMYcRHtAcQy3o4iwxagq5TjgIl+yy2td2dZ93RWEgG7BVm0H45mPgeVG/lee3fWKV/mw/KmwDCQVjHWxj9c0/loQUgS4y2yHM1JLQnjEn9JjfR3nULRISb81KbftxJ3d0n6bCb9pO+h1nnv5idMq00tdNSmvCVaAPaAAODilJtSIgotqPc3OYi6uxdmzwOklbxlkbQJ4JLFObecWOB6OJD0ZPmrn+LZo2k98UYiFZZVITy7yHdcCmcyvkWt6w5LJKAp1DrpKH9pa/X8Mr4oCKoC+PwYfiGkBvkh6gxg9IT5N3o7DVeAALl5khqHF3l0CUXlFut/hSWY4bdzBrT7G/kA+LoxChQY8ZcjInddeZ5uY4ayTfOJE/iQ7c5J42WEp0lp5HIdfb2pRYORIT3bTkBiXcnhmITgayvyI0x97LMKgF9RYV+ePutnUmYgu1De/QcVJQgp3Pjw6ELZ6UTcAAIw59rReuzBw41+/7zU7weRHgaw+dDxIp5xXe20oZQhg0ddWv5GUAIiwgkHAffUHuN/+wN/gG+akbSiUZsoQaUBxMKO1y0n3evBYgK4vdDwKgHLDoYC4w3Z0pDM+S05mA7mTqHIHzGBqtOu/La3arv5QmMXyxX2yr3/Mjctv4hOsb7pvR8FnL7xqwvjI6nDPwVLfcEFJDxLn0mOUD966L4cJBRZIM2gaoTl+29JwJP0Lb+EafjCVNcZ0JfzwJ7bkBf13cLqzcvLL0aX5XOB7/WddNh20hvYeKACoNt1/uwY4thcUlbYSxuhQexlbNF3tnMcQLSn1NxCWBS5URjN+rLMaL9h4ysufRxLSAimEn+Wm30sxYcqI2GhgKjrVqHEUTqOiYz77nrWm6q7EeGYTzxxizL5NAElvuaPDG65+P0KOeCeThNe9REM CHv8d0cL Mj4zMkk7vReM5fWv3hWbjFTgEMMI/xKtle1xVtmrkxP/fnAF0cGzx+d/sBWkyG3fAxHWE5XdQSEGP9nJRRbvyYD/jF4f+ZLwM3PE5B6AoK4MKD/u5EJtbXnaKf2E1JKpofksCbvWjnA5DUWqBep8rMCmDzfNi/mzfy/N0 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> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
[RFC,1/9] splice: don't check for uptodate if partially uptodate is impl
|
expand
|
diff --git a/mm/shmem.c b/mm/shmem.c index b6f9a60b179b..9fa86cb82da9 100644 --- a/mm/shmem.c +++ b/mm/shmem.c @@ -836,6 +836,7 @@ static unsigned long shmem_unused_huge_shrink(struct shmem_sb_info *sbinfo, goto move_back; } + shmem_set_range_uptodate(folio, 0, folio_size(folio)); ret = split_folio(folio); folio_unlock(folio); folio_put(folio);
When reclaiming some space by splitting a large folio through shmem_unused_huge_shrink(), a large folio is split regardless of its uptodate status. Mark all the blocks as uptodate in the reclaim path so split_folio() can release the folio private struct (shmem_folio_state). Signed-off-by: Daniel Gomez <da.gomez@samsung.com> --- mm/shmem.c | 1 + 1 file changed, 1 insertion(+)