]> git.baikalelectronics.ru Git - kernel.git/commit
vmscan: remove obsolete shrink_control comment
authorMinchan Kim <minchan@kernel.org>
Tue, 31 Jul 2012 23:43:16 +0000 (16:43 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 1 Aug 2012 01:42:43 +0000 (18:42 -0700)
commit769b964b0e39e1a354bd25b1e4a815147d170e8c
treeba146f3d6bf531730d1d977dceb2f195ddf23e5b
parentf62b4cc7cf88a58cb7beb9ea019ab1e65cdfaae5
vmscan: remove obsolete shrink_control comment

8c17e240 ("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.  But 67dad680 ("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 revert 8c17e240 because the
comment added in 8c17e240 made an unnecessary rule.

Signed-off-by: Minchan Kim <minchan@kernel.org>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Mikulas Patocka <mpatocka@redhat.com>
Cc: Konstantin Khlebnikov <khlebnikov@openvz.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/super.c
include/linux/shrinker.h