]> 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>
Fri, 30 Sep 2011 04:53:29 +0000 (14:53 +1000)
commit522e71d4f0981e9821fc724001cf5522f6c65d8c
treec66b27064f721c0114f503cf6bbcc013892cf90b
parentdc9c33c9c119f6d7fc4147abe35e79642de836be
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