]> 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, 28 Sep 2011 00:50:23 +0000 (10:50 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 4 Oct 2011 07:38:38 +0000 (18:38 +1100)
commit317190121e724e0b95c1a3a5216dc23860ab9c61
tree7d9b0a22732afb3918557fe6a85ef306e7f8159a
parent2c827f0f61601c079d4ae9dcd1bdd4594bebf372
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 <>
fs/super.c
include/linux/shrinker.h