vmscan: fix shrinker callback bug in fs/super.c
commit26e15787b98f3cac67d0b9458befd24adbef7272
authorMikulas Patocka <mpatocka@redhat.com>
Tue, 1 Nov 2011 00:08:57 +0000 (31 17:08 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 26 Nov 2011 17:08:40 +0000 (26 09:08 -0800)
tree2cfc0d211861ef7a261d3c070c1bb284076806bb
parent1bccf76533a1e336dfa8007554d4283253e259c7
vmscan: fix shrinker callback bug in fs/super.c

commit 09f363c7363eb10cfb4b82094bd7064e5608258b upstream.

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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/super.c
include/linux/shrinker.h