From: Konstantin Khlebnikov Date: Fri, 16 Dec 2011 04:49:48 +0000 (+1100) Subject: mm: account reaped page cache on inode cache pruning X-Git-Tag: next-20111219~1^2~183 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a7d1288c39f4fb4405ab2f514c6c675d92ced04f;p=karo-tx-linux.git mm: account reaped page cache on inode cache pruning Inode cache pruning indirectly reclaims page-cache by invalidating mapping pages. Let's account them into reclaim-state to notice this progress in memory reclaimer. Signed-off-by: Konstantin Khlebnikov Cc: Dave Chinner Signed-off-by: Andrew Morton --- diff --git a/fs/inode.c b/fs/inode.c index ee4e66b998f4..1f6c48d59a0d 100644 --- a/fs/inode.c +++ b/fs/inode.c @@ -692,6 +692,8 @@ void prune_icache_sb(struct super_block *sb, int nr_to_scan) else __count_vm_events(PGINODESTEAL, reap); spin_unlock(&sb->s_inode_lru_lock); + if (current->reclaim_state) + current->reclaim_state->reclaimed_slab += reap; dispose_list(&freeable); }