Message ID | 20230220132218.546369-19-42.hyeyoo@gmail.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 33A1CC64EC4 for <linux-mm@archiver.kernel.org>; Mon, 20 Feb 2023 13:23:26 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C43AE6B008C; Mon, 20 Feb 2023 08:23:25 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id BCCC46B0092; Mon, 20 Feb 2023 08:23:25 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A949C6B0093; Mon, 20 Feb 2023 08:23:25 -0500 (EST) 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 9B3706B008C for <linux-mm@kvack.org>; Mon, 20 Feb 2023 08:23:25 -0500 (EST) Received: from smtpin01.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 58AD71C3401 for <linux-mm@kvack.org>; Mon, 20 Feb 2023 13:23:25 +0000 (UTC) X-FDA: 80487736770.01.69610AE Received: from mail-pj1-f44.google.com (mail-pj1-f44.google.com [209.85.216.44]) by imf04.hostedemail.com (Postfix) with ESMTP id 808A74001C for <linux-mm@kvack.org>; Mon, 20 Feb 2023 13:23:23 +0000 (UTC) Authentication-Results: imf04.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=jIk558op; spf=pass (imf04.hostedemail.com: domain of 42.hyeyoo@gmail.com designates 209.85.216.44 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=1676899403; 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=5mHgCuXAFHph2LKUZmqCnFTzZHFNELK63Gh7ZdcJWvA=; b=Pxbd99qPswCBg0S2tHjAbzotM6rgWlA0CigpxYOK1Hixt28pFNe5wAe9gM1F8GRPwHx+1j 7KpgywbdpCmqbJsmvLhzvngnlXHJs4acqrid0OG3rVdMftV9CATI+A1YMpYg49V5PqRm3m 3yvm4WrvWtBPmPW6UGArPQdCfjVbywc= ARC-Authentication-Results: i=1; imf04.hostedemail.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=jIk558op; spf=pass (imf04.hostedemail.com: domain of 42.hyeyoo@gmail.com designates 209.85.216.44 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=1676899403; a=rsa-sha256; cv=none; b=GDuZ3OOBF/0fhDbmjYh3yDJMvwU6aQwATqSul09r89YDgbuvT0URVydhjEFgkgRzC97nCr R/XHV7XKvtn0yP6J9G1RSyPXSHlirvNEecvdICVVTsvqIz7IBxCGpA0tEPY0djfKxU+g/q HHqWPItRpSLBM3jI4ZbMZPa/VBZx1pg= Received: by mail-pj1-f44.google.com with SMTP id d1-20020a17090a3b0100b00229ca6a4636so1625136pjc.0 for <linux-mm@kvack.org>; Mon, 20 Feb 2023 05:23:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=5mHgCuXAFHph2LKUZmqCnFTzZHFNELK63Gh7ZdcJWvA=; b=jIk558opicVS9f6LnWCR+d3C+WqaFkFRioiHiDiQbY+A36prJChe8smvSb4tLLtsvZ 6nJliTQtamMG81nSlLHheu60qvX7yTSh+lx8o0Fzhbhr+fgE9Pa66QNINARneBz1FmH2 iNb/hgh53350woCF92a5LxTLQMp8pyuJYnEaBy5pAD/kJQ5fFSz4A0VyO4F7B5CURwWN d2KS9pGJz5gZ+Gd47vu4974ZxlDtpojuz0WKWhWYbzIkcVxboowXXeFhUoR4xi/dE1YA IdtW357tDB43TUXvkUjLzh04zblZY2SGpVx7EfU8+zAL72brLs1xTePMAB4HL4Qai6DI ra6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=5mHgCuXAFHph2LKUZmqCnFTzZHFNELK63Gh7ZdcJWvA=; b=ZKZF0agMXjrIBc2nh5L0TfbQSbnvVqeLokTdSfPOEVi8rtf4BlpVF1YE/PONC/uQQe oNOFpNFJYpMiQqGLs2sZeJns5Getd2eZBCnni+6RmYQb+E7WzgXIrfM97qLeVkVpzC0e 7clVurqoG3Mpl7RIDVC+MrixZH/5c1mCQb1+ObsIV0eq6p+qAviyfGkG4A/fI7RkGTTF nMXOwmrZkooK3Z9y22psd6wTKdz1rNI1hjzNt/xz1mLFAQfIKgg+KdUcv9S+4OSZxyM1 JyscE14bQIJP2duaOeltghPrDovW7mY3rNNhF0zxkPmEVD/zMlnyc85t2NOOyPe2Jj0O n/Og== X-Gm-Message-State: AO0yUKWRsV4B4vITEuigWvJttxjowd9gfR1n0WwYNunad5UZnvNivTTV YG0RSu1GZOQ8jSi8q50WYYg= X-Google-Smtp-Source: AK7set/1GkDPG7WSFlS69VSH+ST2Wj43SkW+CipxrpaQHaTPSUYS6RyCOoVzLda/vbTThiUsJHP+qg== X-Received: by 2002:a17:902:facd:b0:19a:9b87:e73f with SMTP id ld13-20020a170902facd00b0019a9b87e73fmr2520861plb.1.1676899402358; Mon, 20 Feb 2023 05:23:22 -0800 (PST) Received: from test-ha.kr-central-1.c.kakaoi.io ([210.109.63.229]) by smtp.gmail.com with ESMTPSA id x2-20020a170902fe8200b0019c13d032d8sm6125436plm.253.2023.02.20.05.23.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Feb 2023 05:23:21 -0800 (PST) From: Hyeonggon Yoo <42.hyeyoo@gmail.com> To: Minchan Kim <minchan@kernel.org>, Sergey Senozhatsky <senozhatsky@chromium.org>, Matthew Wilcox <willy@infradead.org> Cc: Andrew Morton <akpm@linux-foundation.org>, linux-mm@kvack.org, Hyeonggon Yoo <42.hyeyoo@gmail.com> Subject: [RFC PATCH 18/25] mm/zsmalloc: convert free_handles() to use zsdesc Date: Mon, 20 Feb 2023 13:22:11 +0000 Message-Id: <20230220132218.546369-19-42.hyeyoo@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230220132218.546369-1-42.hyeyoo@gmail.com> References: <20230220132218.546369-1-42.hyeyoo@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Stat-Signature: hibhs5ciabbhmz89m3zceiyio47yzgu8 X-Rspam-User: X-Rspamd-Queue-Id: 808A74001C X-Rspamd-Server: rspam06 X-HE-Tag: 1676899403-938384 X-HE-Meta: U2FsdGVkX1/FtpIwZKCCkOSVsKJVngDoAxYwaHo07SAx+ix25SaB7/waLsFVCGvcQTmPP2Zf3qhY/Jaz8viPgyGcVY46bSVNXAvgjcvUNxQ4zohA63F2xf4HkfwPtyMa4bDDsoyRuw9SntQaSc4Yh57W3UJP4bjiuPCPJtN+SXWAxrm+86fpKWrAS36bKqRKcMvJR9cdGgZVII9p/o/i8w24ohv+CmmLBYY9SZ/a8v6YlYf2conIpGkR8Jh/LXh168X+tiKeMzKQUkHEvf6xaVqVBjSavaEF4j/Wl57d9nSX7988jfGp1a6s2D/AU1u48Rrf9zvvSGu0azira/lV6axEMiSRJ0b/fE9CG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iG+TKndJsnKtRAFko1yU4wh6xFEVVc0RntR+7dkr0nZ/SMsCb1rcb6ZpASskoiJODx0MxpHTeB+kp/nagyrcrtSMYZWaUtD8NoYLPBIcYFCWpbAmGurf2bIOfSiM8kngsidkho6pLPbQvR1n4LsTSHDA3wK/Gp6H8A4IS3 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 |
mm/zsmalloc: Split zsdesc from struct page
|
expand
|
diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c index dbc404045487..b58821b3494b 100644 --- a/mm/zsmalloc.c +++ b/mm/zsmalloc.c @@ -1123,14 +1123,14 @@ static void free_handles(struct zs_pool *pool, struct size_class *class, struct zspage *zspage) { int obj_idx = 0; - struct page *page = get_first_page(zspage); + struct zsdesc *zsdesc = get_first_zsdesc(zspage); unsigned long handle; while (1) { - handle = find_deferred_handle_obj(class, page_zsdesc(page), &obj_idx); + handle = find_deferred_handle_obj(class, zsdesc, &obj_idx); if (!handle) { - page = get_next_page(page); - if (!page) + zsdesc = get_next_zsdesc(zsdesc); + if (!zsdesc) break; obj_idx = 0; continue;
Convert free_handles() to use zsdesc. Signed-off-by: Hyeonggon Yoo <42.hyeyoo@gmail.com> --- mm/zsmalloc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)