]> 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>
Fri, 7 Oct 2011 06:06:43 +0000 (17:06 +1100)
commit6677568e29df996f36843c289f8da894fc3993d8
treedce5a64d260c7b161f0c5a53e186949930483bec
parentcd599c73b61e099fcedf931d90b51496f0d3f1d9
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