Commit:     24c32d733dd44dbc5b9dcd0b8de58e16fdbeac76
Parent:     d52b908646b88cb1952ab8c9b2d4423908a23f11
Author:     Andrew Morton <[EMAIL PROTECTED]>
AuthorDate: Tue May 8 00:23:49 2007 -0700
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Tue May 8 11:14:58 2007 -0700

    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 <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
 fs/dcache.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/dcache.c b/fs/dcache.c
index 681cab8..268da2e 100644
--- a/fs/dcache.c
+++ b/fs/dcache.c
@@ -879,7 +879,7 @@ static int shrink_dcache_memory(int nr, gfp_t gfp_mask)
        if (nr) {
                if (!(gfp_mask & __GFP_FS))
                        return -1;
-               prune_dcache(nr, NULL, 0);
+               prune_dcache(nr, NULL, 1);
        return (dentry_stat.nr_unused / 100) * sysctl_vfs_cache_pressure;
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to