summaryrefslogtreecommitdiff
path: root/kernel/livepatch/git:/git.armlinux.org.uk
diff options
context:
space:
mode:
authorShakeel Butt <shakeel.butt@linux.dev>2025-12-16 13:20:54 -0800
committerAndrew Morton <akpm@linux-foundation.org>2025-12-23 11:23:15 -0800
commit6db12d5c474d77016ca9130eb32490c9771fb157 (patch)
tree46be0bed57d4709532f97f6ac7bc0d830068b848 /kernel/livepatch/git:/git.armlinux.org.uk
parente6dbcb7c0e7b508d443a9aa6f77f63a2f83b1ae4 (diff)
mm: memcg: fix unit conversion for K() macro in OOM log
The commit bc8e51c05ad5 ("mm: memcg: dump memcg protection info on oom or alloc failures") added functionality to dump memcg protections on OOM or allocation failures. It uses K() macro to dump the information and passes bytes to the macro. However the macro take number of pages instead of bytes. It is defined as: #define K(x) ((x) << (PAGE_SHIFT-10)) Let's fix this. Link: https://lkml.kernel.org/r/20251216212054.484079-1-shakeel.butt@linux.dev Fixes: bc8e51c05ad5 ("mm: memcg: dump memcg protection info on oom or alloc failures") Signed-off-by: Shakeel Butt <shakeel.butt@linux.dev> Reported-by: Chris Mason <clm@fb.com> Acked-by: Michal Hocko <mhocko@suse.com> Acked-by: Vlastimil Babka <vbabka@suse.cz> Reviewed-by: Muchun Song <muchun.song@linux.dev> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: Roman Gushchin <roman.gushchin@linux.dev> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'kernel/livepatch/git:/git.armlinux.org.uk')
0 files changed, 0 insertions, 0 deletions