]> git.baikalelectronics.ru Git - kernel.git/commit
mm: shrink parent dentries when shrinking slab
authorAndrew Morton <akpm@linux-foundation.org>
Tue, 8 May 2007 07:23:49 +0000 (00:23 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 8 May 2007 18:14:58 +0000 (11:14 -0700)
commit8d1779e54bbb9c96000c2b9543a37674556eb4c4
treeecec100dc2c779d09669d08681339ded6bf5409a
parent31fc99c4883162af02d584651e7fe726070ef75c
mm: shrink parent dentries when shrinking slab

Teach the dentry slab shrinker to aggressively shrink parent dentries when
shrinking the dentry cache.

This is done to attempt to improve the situation where the dentry slab cache
gets a lot of internal fragmentation due to pages containing directory
dentries.  It is expected that this change will cause some of those dentries
to be reaped earlier, and with less scanning.

Needs careful testing.

Cc: Miklos Szeredi <mszeredi@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/dcache.c