2022-03-09 16:13:27

by Matthew Wilcox

[permalink] [raw]
Subject: Re: [PATCH 2/2] mm: slub: Delete useless parameter of alloc_slab_page()

On Wed, Mar 09, 2022 at 10:50:52PM +0800, [email protected] wrote:
> From: Xiongwei Song <[email protected]>
>
> The parameter @s is useless for alloc_slab_page(), let's delete it.

Perhaps we could add a little more information here.

It was added in 2014 by 5dfb41750992 ("sl[au]b: charge slabs to kmemcg
explicitly"). The need for it was removed in 2020 by 1f3147b49d75
("mm: slub: call account_slab_page() after slab page initialization").

Reviewed-by: Matthew Wilcox (Oracle) <[email protected]>


2022-03-09 17:31:47

by David Rientjes

[permalink] [raw]
Subject: Re: [PATCH 2/2] mm: slub: Delete useless parameter of alloc_slab_page()

On Wed, 9 Mar 2022, Matthew Wilcox wrote:

> On Wed, Mar 09, 2022 at 10:50:52PM +0800, [email protected] wrote:
> > From: Xiongwei Song <[email protected]>
> >
> > The parameter @s is useless for alloc_slab_page(), let's delete it.
>
> Perhaps we could add a little more information here.
>
> It was added in 2014 by 5dfb41750992 ("sl[au]b: charge slabs to kmemcg
> explicitly"). The need for it was removed in 2020 by 1f3147b49d75
> ("mm: slub: call account_slab_page() after slab page initialization").
>
> Reviewed-by: Matthew Wilcox (Oracle) <[email protected]>
>

Acked-by: David Rientjes <[email protected]>

2022-03-10 14:24:40

by Xiongwei Song

[permalink] [raw]
Subject: Re: [PATCH 2/2] mm: slub: Delete useless parameter of alloc_slab_page()

On Wed, Mar 9, 2022 at 11:29 PM Matthew Wilcox <[email protected]> wrote:
>
> On Wed, Mar 09, 2022 at 10:50:52PM +0800, [email protected] wrote:
> > From: Xiongwei Song <[email protected]>
> >
> > The parameter @s is useless for alloc_slab_page(), let's delete it.
>
> Perhaps we could add a little more information here.
>
> It was added in 2014 by 5dfb41750992 ("sl[au]b: charge slabs to kmemcg
> explicitly"). The need for it was removed in 2020 by 1f3147b49d75
> ("mm: slub: call account_slab_page() after slab page initialization").

Ok. Will update.

>
> Reviewed-by: Matthew Wilcox (Oracle) <[email protected]>

Thank you.

Regards,
Xiongwei

2022-03-10 21:53:07

by Xiongwei Song

[permalink] [raw]
Subject: Re: [PATCH 2/2] mm: slub: Delete useless parameter of alloc_slab_page()

On Thu, Mar 10, 2022 at 1:15 AM David Rientjes <[email protected]> wrote:
>
> On Wed, 9 Mar 2022, Matthew Wilcox wrote:
>
> > On Wed, Mar 09, 2022 at 10:50:52PM +0800, [email protected] wrote:
> > > From: Xiongwei Song <[email protected]>
> > >
> > > The parameter @s is useless for alloc_slab_page(), let's delete it.
> >
> > Perhaps we could add a little more information here.
> >
> > It was added in 2014 by 5dfb41750992 ("sl[au]b: charge slabs to kmemcg
> > explicitly"). The need for it was removed in 2020 by 1f3147b49d75
> > ("mm: slub: call account_slab_page() after slab page initialization").
> >
> > Reviewed-by: Matthew Wilcox (Oracle) <[email protected]>
> >
>
> Acked-by: David Rientjes <[email protected]>

Thank you!