]> git.karo-electronics.de Git - karo-tx-linux.git/commit
vmscan: fix shrinker callback bug in fs/super.c
authorMikulas Patocka <mpatocka@redhat.com>
Wed, 5 Oct 2011 00:43:10 +0000 (11:43 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 12 Oct 2011 06:32:11 +0000 (17:32 +1100)
commit8c5404dcf2259cb7e29efc8a6a2da27e6f86024a
tree32a76c5cb3560c75a2476baaaf6296510eaaa1bc
parent7936e42f8afbbb78345a2155395183fecd94d4db
vmscan: fix shrinker callback bug in fs/super.c

The callback must not return -1 when nr_to_scan is zero. Fix the bug in
fs/super.c and add this requirement to the callback specification.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Cc: Dave Chinner <david@fromorbit.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/super.c
include/linux/shrinker.h