]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/codetag: fix arg in pgalloc_tag_copy alloc_tag_sub
authorSourav Panda <souravpanda@google.com>
Tue, 22 Oct 2024 23:24:40 +0000 (23:24 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 1 Nov 2024 04:29:16 +0000 (21:29 -0700)
commit3697c79b6d8876cd4405c028e2b2255a7c5c1b6d
tree062a38d634699c4ac8f830460796e58e14f69e4f
parentdb5f39877647fff002976285934f3691d3ea4f09
mm/codetag: fix arg in pgalloc_tag_copy alloc_tag_sub

alloc_tag_sub() takes bytes as opposed to number of pages as argument.

Currently pgalloc_tag_copy() passes the number of pages.  This fix passes
the correct unit, which is the number of bytes allocated.

Link: https://lkml.kernel.org/r/20241022232440.334820-1-souravpanda@google.com
Fixes: e0a955bf7f61 ("mm/codetag: add pgalloc_tag_copy()")
Signed-off-by: Sourav Panda <souravpanda@google.com>
Acked-by: Suren Baghdasaryan <surenb@google.com>
Reviewed-by: Pasha Tatashin <pasha.tatashin@soleen.com>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
Cc: Wei Xu <weixugc@google.com>
Cc: Yu Zhao <yuzhao@google.com>
Cc: Kent Overstreet <kent.overstreet@linux.dev>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/mm.h