From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5EA5DEB64DD for ; Tue, 27 Jun 2023 14:39:01 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B4DF910E30E; Tue, 27 Jun 2023 14:38:37 +0000 (UTC) Received: from out-33.mta0.migadu.com (out-33.mta0.migadu.com [91.218.175.33]) by gabe.freedesktop.org (Postfix) with ESMTPS id 44CB910E501 for ; Thu, 22 Jun 2023 08:35:20 +0000 (UTC) X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1687422370; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=w53NcBmn/IPVgjrXh3hKsvtsk7tDad26SsdH585QToY=; b=XwhMjboYkO1IjigA7jJUMcuvrlsYL6AEdKhP6EAdQek7nGl7SCwZP+s1KaXaDd0EbpkijC WzHmsAAL7fH0Q68pqE9kbEs/wm6WDN8VuTFUTe+F4YIjoGCH/bDYiJlTs6zAXz5aY/DcIU qOKI3csGnCUAw3UqbPNbuNVS2tXOJrg= From: Qi Zheng To: akpm@linux-foundation.org, david@fromorbit.com, tkhai@ya.ru, vbabka@suse.cz, roman.gushchin@linux.dev, djwong@kernel.org, brauner@kernel.org, paulmck@kernel.org, tytso@mit.edu Date: Thu, 22 Jun 2023 08:24:26 +0000 Message-Id: <20230622082454.4090236-2-qi.zheng@linux.dev> In-Reply-To: <20230622082454.4090236-1-qi.zheng@linux.dev> References: <20230622082454.4090236-1-qi.zheng@linux.dev> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT X-Mailman-Approved-At: Tue, 27 Jun 2023 14:38:30 +0000 Subject: [Intel-gfx] [PATCH 01/29] mm: shrinker: add shrinker::private_data field X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mst@redhat.com, neilb@suse.de, jasowang@redhat.com, dri-devel@lists.freedesktop.org, virtualization@lists.linux-foundation.org, linux-mm@kvack.org, song@kernel.org, dm-devel@redhat.com, ray.huang@amd.com, namit@vmware.com, marijn.suijten@somainline.org, airlied@gmail.com, agk@redhat.com, robh@kernel.org, senozhatsky@chromium.org, david@redhat.com, clm@fb.com, steven.price@arm.com, alyssa.rosenzweig@collabora.com, Qi Zheng , josef@toxicpanda.com, linux-ext4@vger.kernel.org, kent.overstreet@gmail.com, xuanzhuo@linux.alibaba.com, linux-arm-msm@vger.kernel.org, intel-gfx@lists.freedesktop.org, snitzer@kernel.org, quic_abhinavk@quicinc.com, colyli@suse.de, linux-raid@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-bcache@vger.kernel.org, viro@zeniv.linux.org.uk, dsterba@suse.com, linux-nfs@vger.kernel.org, tomeu.vizoso@collabora.com, kolga@netapp.com, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, linux-xfs@vger.kernel.org, minchan@kernel.org, chuck.lever@oracle.com, daniel@ffwll.ch, jack@suse.com, dmitry.baryshkov@linaro.org, adilger.kernel@dilger.ca, freedreno@lists.freedesktop.org, christian.koenig@amd.com, linux-btrfs@vger.kernel.org Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" From: Qi Zheng To prepare for the dynamic allocation of shrinker instances embedded in other structures, add a private_data field to struct shrinker, so that we can use shrinker::private_data to record and get the original embedded structure. Signed-off-by: Qi Zheng --- include/linux/shrinker.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/shrinker.h b/include/linux/shrinker.h index 224293b2dd06..43e6fcabbf51 100644 --- a/include/linux/shrinker.h +++ b/include/linux/shrinker.h @@ -70,6 +70,8 @@ struct shrinker { int seeks; /* seeks to recreate an obj */ unsigned flags; + void *private_data; + /* These are for internal use */ struct list_head list; #ifdef CONFIG_MEMCG -- 2.30.2