diff options
| author | 2025-03-18 14:32:26 +0800 | |
|---|---|---|
| committer | 2025-05-11 17:48:20 -0700 | |
| commit | a40b3fa844b4c29276a228ce878bd427a3149d37 (patch) | |
| tree | 8fd485d25b19e45410b587b17dba737812bbda10 /include/linux/fpga/fpga-bridge.h | |
| parent | xarray: make xa_alloc_cyclic() return 0 on all success cases (diff) | |
| download | wireguard-linux-a40b3fa844b4c29276a228ce878bd427a3149d37.tar.xz wireguard-linux-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/20250318063226.223284-1-liuyerd@163.com
Signed-off-by: Liu Ye <liuye@kylinos.cn>
Acked-by: David Hildenbrand <david@redhat.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Muchun Song <muchun.song@linux.dev>
Cc: Ran Xiaokai <ran.xiaokai@zte.com.cn>
Cc: Roman Gushchin <roman.gushchin@linux.dev>
Cc: Shakeel Butt <shakeel.butt@linux.dev>
Cc: Svetly Todorov <svetly.todorov@memverge.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include/linux/fpga/fpga-bridge.h')
0 files changed, 0 insertions, 0 deletions
