]> Git Repo - linux.git/commit
mm,page_owner: implement the tracking of the stacks count
authorOscar Salvador <[email protected]>
Thu, 15 Feb 2024 21:59:04 +0000 (22:59 +0100)
committerAndrew Morton <[email protected]>
Sat, 24 Feb 2024 01:48:17 +0000 (17:48 -0800)
commit217b2119b9e260609958db413876f211038f00ee
tree44878c86a43b10d7bfd3180d4def6f7fa558dae7
parent4bedfb314bdd85c1662ecc46fa25b33b998f994d
mm,page_owner: implement the tracking of the stacks count

Implement {inc,dec}_stack_record_count() which increments or decrements on
respective allocation and free operations, via __reset_page_owner() (free
operation) and __set_page_owner() (alloc operation).

Newly allocated stack_record structs will be added to the list stack_list
via add_stack_record_to_list().  Modifications on the list are protected
via a spinlock with irqs disabled, since this code can also be reached
from IRQ context.

Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Oscar Salvador <[email protected]>
Reviewed-by: Marco Elver <[email protected]>
Reviewed-by: Vlastimil Babka <[email protected]>
Acked-by: Andrey Konovalov <[email protected]>
Cc: Alexander Potapenko <[email protected]>
Cc: Michal Hocko <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
mm/page_owner.c
This page took 0.053327 seconds and 4 git commands to generate.