[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20200203161340.GC1697@cmpxchg.org>
Date: Mon, 3 Feb 2020 11:13:40 -0500
From: Johannes Weiner <hannes@...xchg.org>
To: Roman Gushchin <guro@...com>
Cc: linux-mm@...ck.org, Andrew Morton <akpm@...ux-foundation.org>,
Michal Hocko <mhocko@...nel.org>,
Shakeel Butt <shakeelb@...gle.com>,
Vladimir Davydov <vdavydov.dev@...il.com>,
linux-kernel@...r.kernel.org, kernel-team@...com,
Bharata B Rao <bharata@...ux.ibm.com>,
Yafang Shao <laoar.shao@...il.com>
Subject: Re: [PATCH v2 09/28] mm: memcg/slab: rename
__mod_lruvec_slab_state() into __mod_lruvec_obj_state()
On Mon, Jan 27, 2020 at 09:34:34AM -0800, Roman Gushchin wrote:
> Rename __mod_lruvec_slab_state() into __mod_lruvec_obj_state()
> to unify it with mod_memcg_obj_state(). It better reflects the fact
> that the passed object isn't necessary slab-backed.
Makes sense to me.
> @@ -1116,7 +1116,7 @@ static inline void mod_lruvec_page_state(struct page *page,
> mod_node_page_state(page_pgdat(page), idx, val);
> }
>
> -static inline void __mod_lruvec_slab_state(void *p, enum node_stat_item idx,
> +static inline void __mod_lruvec_obj_state(void *p, enum node_stat_item idx,
> int val)
> {
> struct page *page = virt_to_head_page(p);
> @@ -1217,12 +1217,12 @@ static inline void __dec_lruvec_page_state(struct page *page,
>
> static inline void __inc_lruvec_slab_state(void *p, enum node_stat_item idx)
> {
> - __mod_lruvec_slab_state(p, idx, 1);
> + __mod_lruvec_obj_state(p, idx, 1);
> }
>
> static inline void __dec_lruvec_slab_state(void *p, enum node_stat_item idx)
> {
> - __mod_lruvec_slab_state(p, idx, -1);
> + __mod_lruvec_obj_state(p, idx, -1);
> }
These should be renamed as well, no?
Powered by blists - more mailing lists