XFS update for 2.6.23
Hi Linus,
A couple of fixes for potential fs corruption. And one fix to ensure that xfs_mru_cache is not doing anything unless the cache has active objects.
Please pull from the for-linus branch:
git pull git://oss.sgi.com:8090/xfs/xfs-2.6.git for-linus
This will update the following files:
fs/xfs/linux-2.6/xfs_aops.c | 1 + fs/xfs/linux-2.6/xfs_super.c | 4 ++- fs/xfs/xfs_buf_item.h | 5 +++ fs/xfs/xfs_filestream.c | 3 +- fs/xfs/xfs_log_recover.c | 51 ++++++++++++++++++++++++++++-- fs/xfs/xfs_mru_cache.c | 72 ++++++++++++++++------------------------- fs/xfs/xfs_mru_cache.h | 6 +-- fs/xfs/xfs_trans_buf.c | 1 + fs/xfs/xfs_vnodeops.c | 20 +++++++----- 9 files changed, 101 insertions(+), 62 deletions(-)
through these commits:
commit b394e43e995d08821588a22561c6a71a63b4ff27
Author: Lachlan McIlroy <[email protected]> Date: Fri Sep 14 15:23:04 2007 +1000
[XFS] Avoid replaying inode buffer initialisation log items if on-disk version is newer.
SGI-PV: 969656
SGI-Modid: xfs-linux-melb:xfs-kern:29676a
commit 776a75fa5cfb8f3602d3ca9d221dc34497133f4b
Author: Lachlan McIlroy <[email protected]> Date: Fri Sep 14 15:22:50 2007 +1000
[XFS] Ensure file size updates have been completed before writing inode to disk.
SGI-PV: 968767
SGI-Modid: xfs-linux-melb:xfs-kern:29675a
commit 65de5567564e70edd01b6d4e95e548d7ba284872
Author: David Chinner <[email protected]> Date: Thu Aug 16 15:21:11 2007 +1000
[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
--Tim
Quoted 5 lines · Tim Shimmin
Hi Linus,
A couple of fixes for potential fs corruption. And one fix to ensure that
xfs_mru_cacheis not doing anything unless the cache has active objects.
Seems like you should push the filestreams fix too?
Thanks,
-Eric
p.s. just FWIW, here are the patches I'm currently carrying in F8:
linux-2.6-xfs-avoid-replaying-inode-buffer-init.patch In for-linus
linux-2.6-xfs-filesize-updates.patch In for-linus
linux-2.6-xfs-filestreams-on-demand-MRU-reaping.patch In for-linus
linux-2.6-xfs-fix-filestreams-free-func-cast.patch linux-2.6-xfs-optimize-away-dmapi-tests.patch linux-2.6-xfs-optimize-away-realtime-tests.patch linux-2.6-xfs-refactor-xfs_mountfs.patch linux-2.6-xfs-setfattr-32bit-compat.patch
Hi Eric,
Thanks.
I'll add that commit along with the sparse one...
commit f5076f1243d6007145c0a658fbe05ace6b90a33f
Author: Christoph Hellwig <[email protected]>
Date: Wed Sep 19 15:27:30 2007 +1000
[XFS] fix valid but harmless sparse warning
--Tim
Quoted 27 lines · Eric Sandeen
Quoted 5 lines · Tim Shimmin
Hi Linus,
A couple of fixes for potential fs corruption. And one fix to ensure that
xfs_mru_cacheis not doing anything unless the cache has active objects.cc trimmed...Seems like you should push the filestreams fix too?
Thanks,
-Eric
p.s. just FWIW, here are the patches I'm currently carrying in F8:
linux-2.6-xfs-avoid-replaying-inode-buffer-init.patch In for-linus
linux-2.6-xfs-filesize-updates.patch In for-linus
linux-2.6-xfs-filestreams-on-demand-MRU-reaping.patch In for-linus
linux-2.6-xfs-fix-filestreams-free-func-cast.patch linux-2.6-xfs-optimize-away-dmapi-tests.patch linux-2.6-xfs-optimize-away-realtime-tests.patch linux-2.6-xfs-refactor-xfs_mountfs.patch linux-2.6-xfs-setfattr-32bit-compat.patch