summaryrefslogtreecommitdiff
path: root/block/blk-stat.h
diff options
context:
space:
mode:
authorShakeel Butt <shakeel.butt@linux.dev>2024-04-21 02:25:05 +0300
committerAndrew Morton <akpm@linux-foundation.org>2024-05-06 03:53:44 +0300
commit91882c1617c15eb2a4e996b0822e0b9cbd854dea (patch)
treeec1a4a35ba26774ef2934dc1e56c73c3db7d986b /block/blk-stat.h
parent6ed31ba3921162ef5d4f2f99b91681e8fd24ff34 (diff)
downloadlinux-91882c1617c15eb2a4e996b0822e0b9cbd854dea.tar.xz
memcg: simple cleanup of stats update functions
mod_memcg_lruvec_state() is never called from outside of memcontrol.c and with always irq disabled. So, replace it with the irq disabled version and add an assert that irq is disabled in the caller. Similarly mod_objcg_state() is not called from outside of memcontrol.c, so simply make it static and change it's name to __mod_objcg_state(). Link: https://lkml.kernel.org/r/20240420232505.2768428-1-shakeel.butt@linux.dev Signed-off-by: Shakeel Butt <shakeel.butt@linux.dev> Acked-by: Johannes Weiner <hannes@cmpxchg.org> Reviewed-by: T.J. Mercier <tjmercier@google.com> Cc: Michal Hocko <mhocko@kernel.org> Cc: Muchun Song <muchun.song@linux.dev> Cc: Roman Gushchin <roman.gushchin@linux.dev> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'block/blk-stat.h')
0 files changed, 0 insertions, 0 deletions