]> 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>
Thu, 13 Oct 2011 06:49:27 +0000 (17:49 +1100)
commit4e9857b07d51ebd83bbf26c4258aaec656489751
tree6891731f36d7831b3b6da309edcb3c73b2552d83
parent7a538f57f80cae147c05abcaf2e06872b0fe8150
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