]> git.baikalelectronics.ru Git - kernel.git/commit
[XFS] On-demand reaping of the MRU cache
authorDavid Chinner <dgc@sgi.com>
Thu, 16 Aug 2007 05:21:11 +0000 (15:21 +1000)
committerTim Shimmin <tes@chook.melbourne.sgi.com>
Mon, 17 Sep 2007 06:42:02 +0000 (16:42 +1000)
commit1c8881b1d7d05098851d6c66b6fdf2a58cf70dc2
tree977aef83761c4ef87d95f1e192bc1ae9c7cbdeac
parent5e0fd473dad8787a0ae103ddaa77ae360d43d7c8
[XFS] On-demand reaping of the MRU cache

Instead of running the mru cache reaper all the time based on a timeout,
we should only run it when the cache has active objects. This allows CPUs
to sleep when there is no activity rather than be woken repeatedly just to
check if there is anything to do.

SGI-PV: 968554
SGI-Modid: xfs-linux-melb:xfs-kern:29305a

Signed-off-by: David Chinner <dgc@sgi.com>
Signed-off-by: Donald Douwsma <donaldd@sgi.com>
Signed-off-by: Tim Shimmin <tes@sgi.com>
fs/xfs/xfs_filestream.c
fs/xfs/xfs_mru_cache.c
fs/xfs/xfs_mru_cache.h