Message ID | Z4Uw136VdG7vlKCL@localhost.localdomain (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 BEBACC02183 for <linux-mm@archiver.kernel.org>; Mon, 13 Jan 2025 15:30:06 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 545646B008C; Mon, 13 Jan 2025 10:30:06 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 4F5AF6B0092; Mon, 13 Jan 2025 10:30:06 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 396326B0093; Mon, 13 Jan 2025 10:30:06 -0500 (EST) 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 158406B008C for <linux-mm@kvack.org>; Mon, 13 Jan 2025 10:30:06 -0500 (EST) Received: from smtpin27.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id 8D9961A028A for <linux-mm@kvack.org>; Mon, 13 Jan 2025 15:30:05 +0000 (UTC) X-FDA: 83002814370.27.0D6D5DD Received: from mail-pl1-f176.google.com (mail-pl1-f176.google.com [209.85.214.176]) by imf26.hostedemail.com (Postfix) with ESMTP id 89ACA140021 for <linux-mm@kvack.org>; Mon, 13 Jan 2025 15:30:03 +0000 (UTC) Authentication-Results: imf26.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=mP02YC+W; spf=pass (imf26.hostedemail.com: domain of 42.hyeyoo@gmail.com designates 209.85.214.176 as permitted sender) smtp.mailfrom=42.hyeyoo@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1736782203; 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: in-reply-to:in-reply-to:references:references:dkim-signature; bh=fbV7eVVz7HztxP/VqmpZ3Pl6r2UphJSqPVZokckZ3os=; b=tlQYsDhqmQhLHFTF/qn1Hta9KOhJV1tYGmOwWVpOrhNiZvqyh+4xVIcoZOiMc3DkA8ff2e 7kRrWuOSFsChqvwIjFznEVLSN8WmImuJ0/4qDJTcTKr5yx2aNw8iEzTikmCxhNOdgh1nvY 1FVCb51hA6DzSHwy43Wq/NzK7IzygHI= ARC-Authentication-Results: i=1; imf26.hostedemail.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=mP02YC+W; spf=pass (imf26.hostedemail.com: domain of 42.hyeyoo@gmail.com designates 209.85.214.176 as permitted sender) smtp.mailfrom=42.hyeyoo@gmail.com; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1736782203; a=rsa-sha256; cv=none; b=FaaHYL/W09dDesFF0wfFFkdPsOynp2MdYtC0rJKAi9O8nqXQMB+2v8eA2V7IZJB9bmHspW q5C2bqc+60IzxodXCPTe6sSAmwFf+m37Irjg2KEjZWXG70SbjEEHBodjIRpocz8W+Df+x2 vOW6+d7n8FO0p0dAjGRhzHdwRiJPe8A= Received: by mail-pl1-f176.google.com with SMTP id d9443c01a7336-2156e078563so65665545ad.2 for <linux-mm@kvack.org>; Mon, 13 Jan 2025 07:30:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1736782202; x=1737387002; darn=kvack.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=fbV7eVVz7HztxP/VqmpZ3Pl6r2UphJSqPVZokckZ3os=; b=mP02YC+WtR9TjBgC0Bw8CstiwWM0/+sg6ymSciYVY2/OvL/xfRNcUxsDkOcMb3scuZ c7quGTITc4bXM2iM6d0JTFDkHer2QWlAPUIGQjRJVpH+YKTyQRsrA6vrV7idWNw6IjKt sF6F2jnr/d8tIQocZi+y/51WmXbufR9rG8w1ODLw3VUH5GsBY0MB5/7mEODwhxKq/DPN v3UdG9JndFOUXblZ/oB3sqzETdkWimJJ+Rvmv7kSV541JP5zzqqH510yp9XJIOQq9iGS n8WNbUT32WxcVD77mHRIr88pqFwN8iV05DRYdfCcqJGKuqWiF5RjHNPFaH6CwjnFrNpb gkTQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736782202; x=1737387002; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=fbV7eVVz7HztxP/VqmpZ3Pl6r2UphJSqPVZokckZ3os=; b=M3inpFyOjmCKS64iWr+U9kkhYyH8kGgwBRSyP4i7jXg2svYL2/rczbm3dX8xgn1cP/ h9hFaJKzv0YPbcQIwBr/+pwqLJJX8iCWB3NOshygQ/yiw8hf8S52JzNs2JdvZPlsQq92 MuCM0zHLBxOhDf961ZN5ewvc4OWI2N9hZJLlBhtabJRhO4I1tco7FGKByf4oP057QmMB xz24q/lkMLkc19XwOVWhr7zOpeih5MD46aoiiooFKNN6NZhf6EW5lXmSrrEZFa+hJg3R gmqUFgJN0VriIAFh4gRWo2E3CYqWoiVSkl1bEnQK5NggahjLARbMCSjAfHRR5sFnhV1q NG9Q== X-Forwarded-Encrypted: i=1; AJvYcCXzYFwLrBVeWx57sN40dYMidtfph+tk0Lu2hDuBhnICQte44Jlae51zZX0sHpqblwphrefpcAZQ7w==@kvack.org X-Gm-Message-State: AOJu0Yxno2KxMkizlaaFMhcYwSSXAyLzzNZ4ZhxFYBODko0TtV0BulbR km84mZaphBLMUsN+0VeX+c2ur9VPuEc28LbBGLdzrEFvkANpUMow X-Gm-Gg: ASbGncs60a0IMNL7tUgjQdKCTuDA9+wq5DAUCL4bMwBoWogx3PiIvnto/T/6fgduO87 1iUuZSOqEdhWWBAIZpdVkeN+5J+DSIb325pZNkEeyi1GtPzXONXKOZLYAY0sKE2SXjyJsJPSL2y +WVnKvnu6LQKvHKFiKzvAXHTsFVm+QMw48Uho62Cueen7V5ajRNCIQiOzXaLTozO1NYKsfT6GTc 8z01RTuw7I1m26NWNFNlDjxUyjWiDUDM31XyLM8wyYScXiU3vCDDPQWZT4SGdG3w4g= X-Google-Smtp-Source: AGHT+IHl6cFMZpYZ8W9lvMxBYChm6PS6CCcbqI6CKOFeqbeSJCUE71eTkGeAuX60NRyogNKBLX7m9Q== X-Received: by 2002:a05:6a00:2410:b0:72d:4d77:ccc with SMTP id d2e1a72fcca58-72d4d774d75mr11242542b3a.6.1736782200611; Mon, 13 Jan 2025 07:30:00 -0800 (PST) Received: from localhost.localdomain ([1.245.180.67]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72d4067f609sm6157447b3a.138.2025.01.13.07.29.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jan 2025 07:29:59 -0800 (PST) Date: Tue, 14 Jan 2025 00:29:52 +0900 From: Hyeonggon Yoo <42.hyeyoo@gmail.com> To: Andrew Morton <akpm@linux-foundation.org> Cc: Hyeonggon Yoo <hyeonggon.yoo@sk.com>, Matthew Wilcox <willy@infradead.org>, kernel_team@skhynix.com, Minchan Kim <minchan@kernel.org>, Sergey Senozhatsky <senozhatsky@chromium.org>, "linux-mm@kvack.org" <linux-mm@kvack.org>, Vishal Moola <vishal.moola@gmail.com>, Alex Shi <seakeel@gmail.com>, Alex Shi <alexs@kernel.org> Subject: [PATCH v9 mm-unstable 19/19] mm/zsmalloc: reset zpdesc fields in reset_zpdesc() Message-ID: <Z4Uw136VdG7vlKCL@localhost.localdomain> References: <20241216150450.1228021-1-42.hyeyoo@gmail.com> <20241216150450.1228021-12-42.hyeyoo@gmail.com> <Z4ClZM1ebPDKrdZQ@casper.infradead.org> <2c4596bf-ee80-46fc-af87-d564b90c5110@sk.com> <20250110173235.5b7e6ca5beb189a1270627fa@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250110173235.5b7e6ca5beb189a1270627fa@linux-foundation.org> X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 89ACA140021 X-Rspam-User: X-Stat-Signature: pgnq4s4rwxxpztgacjwxo3sxeasihskw X-HE-Tag: 1736782203-882026 X-HE-Meta: U2FsdGVkX1+vOIy13kcl/9lHN3Qq+EUr4MMnwO0JD6RFuPqeZiUmTPntdqaDZ3WjZNVABLp6bHIzGf8bsTnPyyau1eIWD3rYRM9ml4wyBff0kUhmljGO1LCYhO8Lb1fNDtpd5XM66DNqZV/AL0Yh6Dd6dKu56MctRntKo4w7tjAW2r9bNPBS4/RVpXYWeLZVSkEdnGOBwT6KylGVJzbEHG77T+y67fBtU7ZpLyu4RKBc2ZwxSzDPLOcb/5o1/L4QWbMwactlz1JxtqjNChfPJ/rRoCvbfLOzSgUS/aaKM/GXlPjBJ8Iw8sv9vZ5d+aXa5h/PNa9b3iZneDE5UBgOa+1cgmA3er8UKZjm/9slXF4m0FWdmK5cFeDbGyT13TCvBx/A6fvA9ZmZXwSD+tPRgKlvq49Kg5OQQDSYRyVrWWvRVUc39n/uLYafAF/o9BJkiSovgKBXDyeotqb6CCkjx0Lh+1ro3tcejzB3nE0Q2ErZ2iIAsKa6f0oHoaaDkSilzbiaqImVJPMB4ZuEQKCLIq8HqG26Nfwfb6A2oejsgYnVZAHJtr/EJuINmCbA++J3EUmzuU/itevMyoa8Dl6IpQFIijIPil5do+Kq0JHhriKKcQq5YFkQPdMuvFxhVggIhJu4Z7wsob96j6ckfzfYQKTZzymmPrx3kz7q4MOoAY2O8cOAyBuEUoe4HvqE1L4Q8sU5y0j8pZRKkoV7owtYSNKx39t9vMNsqgzjc9QmlnatZCbbGMfZtjHOrMCANwn+XZorVTgBIfT7AgZslQvoiwZ61lzkqFn0fUVMWKoDR4J/nnBZ9oUxsciLKrWlZ6nvV/TRr0aHeQG0jakartN+P42shtraQhG3he7w30td/eBA+5Msqvbk1vPhJ1NbYY3bpeaxmbkYSBrN2o8/dYxmT/qwSH9Mj5XAfIGF1eOHqu2eUI4S+MAPDOHzJe4CrNYugP3g9G91Nv3EPRR1Txn M3h7DTWG H/IKjkeHldxhv1pAiwc+1tzq2Uj4/LYeVXZWFg0yEh3IY4EVALsFZTEgLlmXE72SCxETcGH1s+HPdsbgcRy5jAEkAHnvvh2wbTXoEM4XYqiQ1emzL5XL7Pzw0tnSODdueiL6D8wQ4c3El4BEe4pKozwF64H+AE0+TLrQvo1Zk/3xIpPVArbOPtfVRFlrRNZ8MwMCm1Efd8k/Lyc1RSx505Iad6Fq9jk+RHBT8qXECc/A9Rnc7ubJ5wHe4gkkD0CqSvUpHGb3QFxyY8loUso/otHaeYZJzygy9I9uoAGSp+JyNyTRIJm6boeROUu1rCe03icO3tBkZotQGQNulzGIw2yVX1e+Jvu73+7jjXnpWXDej5WU3td/3HrjkOgPU0kSlkMHGY1nB4bH+hSrRYeL0BFu3fPqqIAgt/OxU+Q7uGeQE0HoJCW8RgmQXCHszeIuS+YBGAFEcqg+eAzT48D0R1vWvsg13DrV7U0oA0aSuAhMlhGrwqLvmurTEmX0SV+aCajvXMlZ+/nNyb1TZZ2BMbJjkKLGF3mYAW2HXDiWffecK2qoaUyfWEzBRHwdIwCl0iKX+vTT9W+fvkO54sGTY8zbeNoF453PjTPOG0ebjkLiiVoLgGKtDMuS7SiHCcwPNG74PKzLnn1QN+Kky9hV5wBp4Zw== X-Bogosity: Ham, tests=bogofilter, spamicity=0.005058, 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 |
Add zpdesc memory descriptor for zswap.zpool
|
expand
|
diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c index dae32e051779..817626a351f8 100644 --- a/mm/zsmalloc.c +++ b/mm/zsmalloc.c @@ -826,8 +826,8 @@ static void reset_zpdesc(struct zpdesc *zpdesc) __ClearPageMovable(page); ClearPagePrivate(page); - set_page_private(page, 0); - page->index = 0; + zpdesc->zspage = NULL; + zpdesc->next = NULL; __ClearPageZsmalloc(page); }
To prepare for the future removal of struct page fields (e.g. the removal of page->index [1]), update reset_zpdesc() to reset the descriptor via struct zpdesc instead of struct page. As struct zpdesc overlays struct page for now, no functional change is intended. [1] https://lore.kernel.org/linux-mm/Z09hOy-UY9KC8WMb@casper.infradead.org Signed-off-by: Hyeonggon Yoo <42.hyeyoo@gmail.com> --- mm/zsmalloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)