[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230622082454.4090236-2-qi.zheng@linux.dev>
Date: Thu, 22 Jun 2023 08:24:26 +0000
From: Qi Zheng <qi.zheng@...ux.dev>
To: akpm@...ux-foundation.org, david@...morbit.com, tkhai@...ru,
vbabka@...e.cz, roman.gushchin@...ux.dev, djwong@...nel.org,
brauner@...nel.org, paulmck@...nel.org, tytso@....edu
Cc: airlied@...il.com, daniel@...ll.ch, robdclark@...il.com,
quic_abhinavk@...cinc.com, dmitry.baryshkov@...aro.org,
sean@...rly.run, marijn.suijten@...ainline.org, robh@...nel.org,
tomeu.vizoso@...labora.com, steven.price@....com,
alyssa.rosenzweig@...labora.com, agk@...hat.com,
snitzer@...nel.org, song@...nel.org, colyli@...e.de,
kent.overstreet@...il.com, namit@...are.com,
gregkh@...uxfoundation.org, mst@...hat.com, david@...hat.com,
jasowang@...hat.com, xuanzhuo@...ux.alibaba.com,
viro@...iv.linux.org.uk, adilger.kernel@...ger.ca, jack@...e.com,
chuck.lever@...cle.com, neilb@...e.de, kolga@...app.com,
minchan@...nel.org, senozhatsky@...omium.org, clm@...com,
josef@...icpanda.com, dsterba@...e.com, christian.koenig@....com,
ray.huang@....com, linux-kernel@...r.kernel.org,
linux-mm@...ck.org, intel-gfx@...ts.freedesktop.org,
dri-devel@...ts.freedesktop.org, freedreno@...ts.freedesktop.org,
linux-arm-msm@...r.kernel.org, dm-devel@...hat.com,
linux-raid@...r.kernel.org, linux-bcache@...r.kernel.org,
virtualization@...ts.linux-foundation.org,
linux-fsdevel@...r.kernel.org, linux-ext4@...r.kernel.org,
linux-nfs@...r.kernel.org, linux-xfs@...r.kernel.org,
linux-btrfs@...r.kernel.org, Qi Zheng <zhengqi.arch@...edance.com>
Subject: [PATCH 01/29] mm: shrinker: add shrinker::private_data field
From: Qi Zheng <zhengqi.arch@...edance.com>
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 <zhengqi.arch@...edance.com>
---
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
Powered by blists - more mailing lists