Skip to content

Commit eb5ca90

Browse files
author
Danilo Krummrich
committed
mm/vmscan: fix inverted polarity in lru_gen_seq_show()
Commit a7694ff ("vmscan: don't bother with debugfs_real_fops()") started using debugfs_get_aux_num() to distinguish between the RW "lru_gen" and the RO "lru_gen_full" file [1]. Willy reported the inverted polarity [2] and Al fixed it up in [3]. However, the patch in [1] was applied. Hence, fix this up accordingly. Cc: Alexander Viro <[email protected]> Cc: Matthew Wilcox <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Link: https://lore.kernel.org/all/20250704040720.GP1880847@ZenIV/ [1] Link: https://lore.kernel.org/all/[email protected]/ [2] Link: https://lore.kernel.org/all/20250704040720.GP1880847@ZenIV/ [3] Fixes: a7694ff ("vmscan: don't bother with debugfs_real_fops()") Acked-by: Greg Kroah-Hartman <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Danilo Krummrich <[email protected]>
1 parent 8f5ae30 commit eb5ca90

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mm/vmscan.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5772,9 +5772,9 @@ static int __init init_lru_gen(void)
57725772
if (sysfs_create_group(mm_kobj, &lru_gen_attr_group))
57735773
pr_err("lru_gen: failed to create sysfs group\n");
57745774

5775-
debugfs_create_file_aux_num("lru_gen", 0644, NULL, NULL, 1,
5775+
debugfs_create_file_aux_num("lru_gen", 0644, NULL, NULL, false,
57765776
&lru_gen_rw_fops);
5777-
debugfs_create_file_aux_num("lru_gen_full", 0444, NULL, NULL, 0,
5777+
debugfs_create_file_aux_num("lru_gen_full", 0444, NULL, NULL, true,
57785778
&lru_gen_ro_fops);
57795779

57805780
return 0;

0 commit comments

Comments
 (0)