]> git.baikalelectronics.ru Git - kernel.git/commit
superblock: add filesystem shrinker operations
authorDave Chinner <dchinner@redhat.com>
Fri, 8 Jul 2011 04:14:44 +0000 (14:14 +1000)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 21 Jul 2011 00:47:41 +0000 (20:47 -0400)
commit5b75a9586ed76b333c9c4568cc002a562a8bcb8e
treea8b21525d195d436fa738e9a470e64eaa21e6736
parentddab9344b7f04bafe404d4f2b275720d17ac41c7
superblock: add filesystem shrinker operations

Now we have a per-superblock shrinker implementation, we can add a
filesystem specific callout to it to allow filesystem internal
caches to be shrunk by the superblock shrinker.

Rather than perpetuate the multipurpose shrinker callback API (i.e.
nr_to_scan == 0 meaning "tell me how many objects freeable in the
cache), two operations will be added. The first will return the
number of objects that are freeable, the second is the actual
shrinker call.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Documentation/filesystems/vfs.txt
fs/super.c
include/linux/fs.h