> On Jul 24, 2023, at 17:43, Qi Zheng <[email protected]> wrote: > > Use new APIs to dynamically allocate the rcu-lazy shrinker. > > Signed-off-by: Qi Zheng <[email protected]> > --- > kernel/rcu/tree_nocb.h | 19 +++++++++++-------- > 1 file changed, 11 insertions(+), 8 deletions(-) > > diff --git a/kernel/rcu/tree_nocb.h b/kernel/rcu/tree_nocb.h > index 43229d2b0c44..919f17561733 100644 > --- a/kernel/rcu/tree_nocb.h > +++ b/kernel/rcu/tree_nocb.h > @@ -1397,12 +1397,7 @@ lazy_rcu_shrink_scan(struct shrinker *shrink, struct > shrink_control *sc) > return count ? count : SHRINK_STOP; > } > > -static struct shrinker lazy_rcu_shrinker = { > - .count_objects = lazy_rcu_shrink_count, > - .scan_objects = lazy_rcu_shrink_scan, > - .batch = 0, > - .seeks = DEFAULT_SEEKS, > -}; > +static struct shrinker *lazy_rcu_shrinker; Seems there is no users of this variable, maybe we could drop this.
- Re: [PATCH v2 12/47] NFSv4.2: dynamically al... Muchun Song
- [PATCH v2 13/47] nfs: dynamically allocate the nf... Qi Zheng via Linux-erofs
- Re: [PATCH v2 13/47] nfs: dynamically alloca... Muchun Song
- [PATCH v2 14/47] nfsd: dynamically allocate the n... Qi Zheng via Linux-erofs
- Re: [PATCH v2 14/47] nfsd: dynamically alloc... Muchun Song
- [PATCH v2 15/47] quota: dynamically allocate the ... Qi Zheng via Linux-erofs
- Re: [PATCH v2 15/47] quota: dynamically allo... Muchun Song
- [PATCH v2 16/47] ubifs: dynamically allocate the ... Qi Zheng via Linux-erofs
- Re: [PATCH v2 16/47] ubifs: dynamically allo... Muchun Song
- [PATCH v2 17/47] rcu: dynamically allocate the rc... Qi Zheng via Linux-erofs
- Re: [PATCH v2 17/47] rcu: dynamically alloca... Muchun Song
- Re: [PATCH v2 17/47] rcu: dynamically al... Qi Zheng via Linux-erofs
- [PATCH v2 18/47] rcu: dynamically allocate the rc... Qi Zheng via Linux-erofs
- Re: [PATCH v2 18/47] rcu: dynamically alloca... Muchun Song
- [PATCH v2 19/47] mm: thp: dynamically allocate th... Qi Zheng via Linux-erofs
- Re: [PATCH v2 19/47] mm: thp: dynamically al... Muchun Song
- Re: [PATCH v2 19/47] mm: thp: dynamicall... Qi Zheng via Linux-erofs
- [PATCH v2 20/47] sunrpc: dynamically allocate the... Qi Zheng via Linux-erofs
- Re: [PATCH v2 20/47] sunrpc: dynamically all... Muchun Song
- [PATCH v2 21/47] mm: workingset: dynamically allo... Qi Zheng via Linux-erofs
- Re: [PATCH v2 21/47] mm: workingset: dynamic... Muchun Song
