Remove CFORK macros and use code directly in IFORK and DFORK macros.
Currently XFS_IFORK_* and XFS_DFORK* are implemented by means of
XFS_CFORK* macros. But given that XFS_IFORK_* operates on an
xfs_inode that embedds and xfs_icdinode_core and XFS_DFORK_* operates
on an xfs_dinode that embedds a xfs_dinode_core one will have to do
endian swapping while the other doesn't. Instead of having the current
mess with the CFORK macros that have byteswapping and non-byteswapping
version (which are inconsistantly named while we're at it) just define
each family of the macros to stand by itself and simplify the whole
A few direct references to the CFORK variants were cleaned up to
use IFORK or DFORK to make this possible.
Signed-off-by: Christoph Hellwig <hch@xxxxxx>
Date: Fri Nov 30 14:28:54 AEDT 2007
Inspected by: hch@xxxxxx
The following file(s) were checked into:
fs/xfs/xfs_itable.c - 1.160 - changed
fs/xfs/xfs_inode.c - 1.488 - changed
fs/xfs/xfs_inode.h - 1.239 - changed
fs/xfs/xfs_dinode.h - 1.84 - changed
fs/xfs/dmapi/xfs_dm.c - 1.60 - changed
- Remove CFORK macros and use code directly in IFORK and DFORK macros.