Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

mm/page_owner: rename proc-prefixed variables for clarity

`proc_page_owner_operations` and related variables were renamed to
`page_owner_fops` to better reflect their association with `debugfs`
rather than `/proc`. This improves code clarity and aligns with kernel
naming conventions.

Link: https://lkml.kernel.org/r/20250930092153.843109-1-husong@kylinos.cn
Signed-off-by: Song Hu <husong@kylinos.cn>
Acked-by: Vlastimil Babka <vbabka@suse.cz>
Reviewed-by: Ye Liu <liuye@kylinos.cn>
Cc: Brendan Jackman <jackmanb@google.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Suren Baghdasaryan <surenb@google.com>
Cc: Zi Yan <ziy@nvidia.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Song Hu and committed by
Andrew Morton
9686080d ada5cbe3

+8 -10
+8 -10
mm/page_owner.c
··· 860 860 init_zones_in_node(pgdat); 861 861 } 862 862 863 - static const struct file_operations proc_page_owner_operations = { 863 + static const struct file_operations page_owner_fops = { 864 864 .read = read_page_owner, 865 865 .llseek = lseek_page_owner, 866 866 }; ··· 961 961 return ret; 962 962 } 963 963 964 - static const struct file_operations page_owner_stack_operations = { 964 + static const struct file_operations page_owner_stack_fops = { 965 965 .open = page_owner_stack_open, 966 966 .read = seq_read, 967 967 .llseek = seq_lseek, ··· 980 980 return 0; 981 981 } 982 982 983 - DEFINE_SIMPLE_ATTRIBUTE(proc_page_owner_threshold, &page_owner_threshold_get, 983 + DEFINE_SIMPLE_ATTRIBUTE(page_owner_threshold_fops, &page_owner_threshold_get, 984 984 &page_owner_threshold_set, "%llu"); 985 985 986 986 ··· 993 993 return 0; 994 994 } 995 995 996 - debugfs_create_file("page_owner", 0400, NULL, NULL, 997 - &proc_page_owner_operations); 996 + debugfs_create_file("page_owner", 0400, NULL, NULL, &page_owner_fops); 998 997 dir = debugfs_create_dir("page_owner_stacks", NULL); 999 998 debugfs_create_file("show_stacks", 0400, dir, 1000 999 (void *)(STACK_PRINT_FLAG_STACK | 1001 1000 STACK_PRINT_FLAG_PAGES), 1002 - &page_owner_stack_operations); 1001 + &page_owner_stack_fops); 1003 1002 debugfs_create_file("show_handles", 0400, dir, 1004 1003 (void *)(STACK_PRINT_FLAG_HANDLE | 1005 1004 STACK_PRINT_FLAG_PAGES), 1006 - &page_owner_stack_operations); 1005 + &page_owner_stack_fops); 1007 1006 debugfs_create_file("show_stacks_handles", 0400, dir, 1008 1007 (void *)(STACK_PRINT_FLAG_STACK | 1009 1008 STACK_PRINT_FLAG_HANDLE), 1010 - &page_owner_stack_operations); 1009 + &page_owner_stack_fops); 1011 1010 debugfs_create_file("count_threshold", 0600, dir, NULL, 1012 - &proc_page_owner_threshold); 1013 - 1011 + &page_owner_threshold_fops); 1014 1012 return 0; 1015 1013 } 1016 1014 late_initcall(pageowner_init)