diff options
| author | Liu Ye <[email protected]> | 2025-03-18 06:32:26 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2025-05-12 00:48:20 +0000 |
| commit | a40b3fa844b4c29276a228ce878bd427a3149d37 (patch) | |
| tree | 8fd485d25b19e45410b587b17dba737812bbda10 /mm/vmalloc.c | |
| parent | xarray: make xa_alloc_cyclic() return 0 on all success cases (diff) | |
| download | kernel-a40b3fa844b4c29276a228ce878bd427a3149d37.tar.gz kernel-a40b3fa844b4c29276a228ce878bd427a3149d37.zip | |
fs/proc/page: refactor to reduce code duplication
kpageflags_read() and kpagecgroup_read() are quite similar to
kpagecount_read(). Refactor common code into a helper function to reduce
code duplication.
Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Liu Ye <[email protected]>
Acked-by: David Hildenbrand <[email protected]>
Cc: Johannes Weiner <[email protected]>
Cc: Matthew Wilcox (Oracle) <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: Muchun Song <[email protected]>
Cc: Ran Xiaokai <[email protected]>
Cc: Roman Gushchin <[email protected]>
Cc: Shakeel Butt <[email protected]>
Cc: Svetly Todorov <[email protected]>
Cc: Vlastimil Babka <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'mm/vmalloc.c')
0 files changed, 0 insertions, 0 deletions
