[Top] [All Lists]

PARTIAL TAKE 971186 - remove CFORK macros

To: sgi.bugs.xfs@xxxxxxxxxxxx, xfs@xxxxxxxxxxx
Subject: PARTIAL TAKE 971186 - remove CFORK macros
From: tes@xxxxxxx (Tim Shimmin)
Date: Fri, 30 Nov 2007 14:30:35 +1100 (EST)
Sender: xfs-bounce@xxxxxxxxxxx
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
Workarea:  chook.melbourne.sgi.com:/build/tes/2.6.x-xfs-quilt
Inspected by:  hch@xxxxxx

The following file(s) were checked into:

Modid:  xfs-linux-melb:xfs-kern:30163a
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.

<Prev in Thread] Current Thread [Next in Thread>
  • PARTIAL TAKE 971186 - remove CFORK macros, Tim Shimmin <=