Message ID | 20240628031138.429622-19-alexs@kernel.org (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 2BBB3C2BD09 for <linux-mm@archiver.kernel.org>; Fri, 28 Jun 2024 03:07:59 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A11506B00B9; Thu, 27 Jun 2024 23:07:58 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 9C4A76B00BA; Thu, 27 Jun 2024 23:07:58 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8166E6B00BB; Thu, 27 Jun 2024 23:07:58 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 5F63C6B00B9 for <linux-mm@kvack.org>; Thu, 27 Jun 2024 23:07:58 -0400 (EDT) Received: from smtpin25.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 1E52C1C2920 for <linux-mm@kvack.org>; Fri, 28 Jun 2024 03:07:58 +0000 (UTC) X-FDA: 82278813036.25.381938C Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf09.hostedemail.com (Postfix) with ESMTP id 7F83E140009 for <linux-mm@kvack.org>; Fri, 28 Jun 2024 03:07:56 +0000 (UTC) Authentication-Results: imf09.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=DvOnLEDk; spf=pass (imf09.hostedemail.com: domain of alexs@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=alexs@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1719544059; 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-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=6tqRDJG/cEYMTiNmBkhl9lqAdqcMqlFpJcsAKZZNF9w=; b=5a0NN/q4Lc9lpXxu5K2y28/mJNKmyd5CYqEKgjTrCT8dUfu/WLl+r7/MQQEy0R/nJ4pzeG ozzPt5dop7Ceip398xVYAOUjdLkgYUBMSJVIOVjWD8feht1Il/oSEN5UZBIar+KINLydsb ZwaG3x9ygJQAAKlYwcWg599QGylptHQ= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1719544059; a=rsa-sha256; cv=none; b=vQFEA22PFpe5We3qytK50ewHZaPeppGPJkBzfUcG2SV0glK5pIdSjxhA9ZmE0dGpvGofA4 WD7nb72gbF964MFuYD7wXPDecqJarigHlSdpMPZ62yuJuThhnRxXMqsL8qW3X6Kp3N3FIf YzYv9zxEHDisxsOApO7bHelEX0c/ToE= ARC-Authentication-Results: i=1; imf09.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=DvOnLEDk; spf=pass (imf09.hostedemail.com: domain of alexs@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=alexs@kernel.org; dmarc=pass (policy=none) header.from=kernel.org Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id B05BD6204C; Fri, 28 Jun 2024 03:07:55 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8258FC32781; Fri, 28 Jun 2024 03:07:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1719544075; bh=fr0OSLBdVEu4PiREH2sgZbNiunlztN2rB5Cg12p8Bfw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DvOnLEDkbTMaJdXPPoE1HQN7ICZRZxu/wx2iuZ1D7NCvHtiBu/yFUSmpp5eoK+R+Z TvQqHcw2vcNpwhurl3xIfOeKvMoBgVhkiFsLwk0VU4++awCje1qxplJZfPZn0cbjYD 5x1ZXJrtgAeHdcFkb8/i8YpR1zJv1PKsrAXbqKRKqZPO0plgI5cGurmLzHbirBSPEc dhk0stZxfzY2xA42dD8R6xyMrrBjAVjxbF2X/2AT1IGkp3TraKKTbrLLOCjiOnZ3+K 08leqFILaTWgWWtRcj3nawG+h99Vs1nRjoc37yqyeL2bdDuvr6V5RNmcnnWddzGbGs yfGXWvqCkDi6g== From: alexs@kernel.org To: Vitaly Wool <vitaly.wool@konsulko.com>, Miaohe Lin <linmiaohe@huawei.com>, Andrew Morton <akpm@linux-foundation.org>, linux-kernel@vger.kernel.org, linux-mm@kvack.org, minchan@kernel.org, willy@infradead.org, senozhatsky@chromium.org, david@redhat.com, 42.hyeyoo@gmail.com Cc: Alex Shi <alexs@kernel.org> Subject: [PATCH 18/20] mm/zsmalloc: introduce __zpdesc_clear_movable Date: Fri, 28 Jun 2024 11:11:33 +0800 Message-ID: <20240628031138.429622-19-alexs@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240628031138.429622-1-alexs@kernel.org> References: <20240628031138.429622-1-alexs@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspam-User: X-Rspamd-Server: rspam04 X-Rspamd-Queue-Id: 7F83E140009 X-Stat-Signature: jau7jai95wpg5ssofk8gfonxn4ei51sk X-HE-Tag: 1719544076-222401 X-HE-Meta: U2FsdGVkX183htGhgAmn/Z7YXNndeV8a5g3ZRmL2KrhNLXmQZOhxsNDhfJb6bGNIKtaYpoGTP9+qGZP2LwtJF1Pp/weFXe8MoZAubWnH9MJZwoamL+rAMTozeBxaYWD8MVLmMl1P+VnR51okMFzLV596X5O94O1YbSDh2PTdMWRoiNyc1vuZWEaMuTPg1o//OSVMvgeimNfeP0fxMO4C3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Q4TN77QH/PZUtCddRS5ckD2V6C+lQH/jAEEQJus0zfp0AaGh 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 |
mm/zsmalloc: add zpdesc memory descriptor for zswap.zpool
|
expand
|
diff --git a/mm/zpdesc.h b/mm/zpdesc.h index 17941774c46e..c6a44fe04f97 100644 --- a/mm/zpdesc.h +++ b/mm/zpdesc.h @@ -102,6 +102,11 @@ static inline void __zpdesc_set_movable(struct zpdesc *zpdesc, __SetPageMovable(zpdesc_page(zpdesc), mops); } +static inline void __zpdesc_clear_movable(struct zpdesc *zpdesc) +{ + __ClearPageMovable(zpdesc_page(zpdesc)); +} + static inline bool zpdesc_is_isolated(struct zpdesc *zpdesc) { return PageIsolated(zpdesc_page(zpdesc)); diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c index 3ce49f0372cc..abecc8a5c566 100644 --- a/mm/zsmalloc.c +++ b/mm/zsmalloc.c @@ -848,7 +848,7 @@ static void reset_zpdesc(struct zpdesc *zpdesc) { struct page *page = zpdesc_page(zpdesc); - __ClearPageMovable(page); + __zpdesc_clear_movable(zpdesc); ClearPagePrivate(page); zpdesc->zspage = NULL; zpdesc->next = NULL;