mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
vmscan: remove obsolete shrink_control comment
09f363c7("vmscan: fix shrinker callback bug in fs/super.c") fixed a shrinker callback which was returning -1 when nr_to_scan is zero, which caused excessive slab scanning. But635697c6("vmscan: fix initial shrinker size handling") fixed the problem, again so we can freely return -1 although nr_to_scan is zero. So let's revert09f363c7because the comment added in09f363c7made an unnecessary rule. Signed-off-by: Minchan Kim <[email protected]> Cc: Al Viro <[email protected]> Cc: Mikulas Patocka <[email protected]> Cc: Konstantin Khlebnikov <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
fe03025db3
commit
8e125cd855
2 changed files with 1 additions and 2 deletions
|
|
@ -62,7 +62,7 @@ static int prune_super(struct shrinker *shrink, struct shrink_control *sc)
|
|||
return -1;
|
||||
|
||||
if (!grab_super_passive(sb))
|
||||
return !sc->nr_to_scan ? 0 : -1;
|
||||
return -1;
|
||||
|
||||
if (sb->s_op && sb->s_op->nr_cached_objects)
|
||||
fs_objects = sb->s_op->nr_cached_objects(sb);
|
||||
|
|
|
|||
Loading…
Reference in a new issue