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?