mm/vmscan: fix inverted polarity in lru_gen_seq_show()
Subsystems (3)
PATCH 1/1 mm/vmscan: fix inverted polarity in lru_gen_seq_show()
Commit a7694ff11aa9 ("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.
--- mm/vmscan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
mm/vmscan.c +2 -2
@@ -5756,9 +5756,9 @@ static int __init init_lru_gen(void)if (sysfs_create_group (mm_kobj, &lru_gen_attr_group))pr_err ("lru_gen: failed to create sysfs group\n" ); -debugfs_create_file_aux_num ("lru_gen" ,0644 ,NULL ,NULL ,1 , +debugfs_create_file_aux_num ("lru_gen" ,0644 ,NULL ,NULL , false, &lru_gen_rw_fops); -debugfs_create_file_aux_num ("lru_gen_full" ,0444 ,NULL ,NULL ,0 , +debugfs_create_file_aux_num ("lru_gen_full" ,0444 ,NULL ,NULL , true, &lru_gen_ro_fops);return 0 ;
base-commit: 51a486feac0ca002bee6429f03da0a6c206d0dc5
Signature · 1 line
2.50.0
Quoted 16 lines · Danilo Krummrich
Commit
a7694ff11aa9("vmscan: don't bother withdebugfs_real_fops()") started usingdebugfs_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]>Fixes a7694ff11aa9 ("vmscan: don't bother with debugfs_real_fops()")Signed-off-by Danilo Krummrich <[email protected]>
Quoted 3 lines
--- mm/vmscan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
Nice, thanks for fixing this up:
Danilo Krummrich
AppliedQuoted 8 lines · Danilo Krummrich
Commit
a7694ff11aa9("vmscan: don't bother withdebugfs_real_fops()") started usingdebugfs_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.
Quoted 8 lines
Cc Alexander Viro <[email protected]>Cc Matthew Wilcox <[email protected]>Cc Greg Kroah-Hartman <[email protected]>Fixes a7694ff11aa9 ("vmscan: don't bother with debugfs_real_fops()")Signed-off-by Danilo Krummrich <[email protected]>
Applied to driver-core-linus, thanks!
Quoted 18 lines · Danilo Krummrich
Quoted 8 lines · Danilo Krummrich
Commit
a7694ff11aa9("vmscan: don't bother withdebugfs_real_fops()") started usingdebugfs_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.
Quoted 8 lines
Cc Alexander Viro <[email protected]>Cc Matthew Wilcox <[email protected]>Cc Greg Kroah-Hartman <[email protected]>Fixes a7694ff11aa9 ("vmscan: don't bother with debugfs_real_fops()")Signed-off-by Danilo Krummrich <[email protected]>
Quoted 1 line
Applied to driver-core-linus, thanks!
Sorry for the delay, thanks for queueing this up.
greg k-h