]> git.neil.brown.name Git - history.git/commit
XFS: Switch to native endian internal representation for extents
authorStephen Lord <lord@sgi.com>
Tue, 15 Oct 2002 01:16:03 +0000 (03:16 +0200)
committerChristoph Hellwig <hch@sgi.com>
Tue, 15 Oct 2002 01:16:03 +0000 (03:16 +0200)
commit37183a5f29396b9c039d2a9303366e337a700258
treed1f42e358c7668457e16924917dffa804e765559
parent1598e9c357bbedfd8f4d6c6269ac2eaa09a76faf
XFS: Switch to native endian internal representation for extents

Switch xfs from using a big endian internal representation for
the in memory copy of extents to a host byte order representation.
The internal extents are read in once, then modified seperately
from the on disk ones. Since we search and manipulate the extents
multiple times, it is cheaper to convert them to host byte order
once and then keep them in that format. Worth about 5 to 10%
reduction in cpu time for some loads. Complicated by the fact
that the in memory extents are written out to the log sometimes,
and when expanding extents are used to write out the initial
block of extents.

Modid: 2.5.x-xfs:slinx:129646a
fs/xfs/xfs_bmap.c
fs/xfs/xfs_bmap_btree.c
fs/xfs/xfs_bmap_btree.h
fs/xfs/xfs_btree.c
fs/xfs/xfs_inode.c
fs/xfs/xfs_inode.h
fs/xfs/xfs_inode_item.c
fs/xfs/xfs_inode_item.h
fs/xfs/xfsidbg.c