]> err.no Git - linux-2.6/commit
vfs: skip inodes without pages to free in drop_pagecache_sb()
authorJan Kara <jack@suse.cz>
Tue, 29 Apr 2008 07:59:39 +0000 (00:59 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 29 Apr 2008 15:06:05 +0000 (08:06 -0700)
commitaf065b8a19041554196971d8b6ae1459798d3b14
tree33bfa04388cecfc50dda596302c3a5c91d0e2b64
parenteccb95cee4f0d56faa46ef22fb94dd4a3578d3eb
vfs: skip inodes without pages to free in drop_pagecache_sb()

Many inodes have no pagecache, so we can avoid lots of lock-takings.

Signed-off-by: Jan Kara <jack@suse.cz>
Cc: Fengguang Wu <wfg@mail.ustc.edu.cn>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/drop_caches.c