aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_dir2_data.h
diff options
context:
space:
mode:
authorNathan Scott <nathans@sgi.com>2006-03-17 01:27:37 -0500
committerNathan Scott <nathans@sgi.com>2006-03-17 01:27:37 -0500
commitad354eb34eb354eedc483d1e89e17710165bd2db (patch)
treeaa7977517a3f516c81cf162bd62d7f84749a3138 /fs/xfs/xfs_dir2_data.h
parentafbcb3f91903bcd34d470efe64b3738257178667 (diff)
[XFS] endianess annotations for xfs_dir2_data_unused_t
SGI-PV: 943272 SGI-Modid: xfs-linux-melb:xfs-kern:25489a Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Nathan Scott <nathans@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_dir2_data.h')
-rw-r--r--fs/xfs/xfs_dir2_data.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/xfs/xfs_dir2_data.h b/fs/xfs/xfs_dir2_data.h
index dd8b86523635..28adddb48e88 100644
--- a/fs/xfs/xfs_dir2_data.h
+++ b/fs/xfs/xfs_dir2_data.h
@@ -97,10 +97,10 @@ typedef struct xfs_dir2_data_entry {
97 * Tag appears as the last 2 bytes. 97 * Tag appears as the last 2 bytes.
98 */ 98 */
99typedef struct xfs_dir2_data_unused { 99typedef struct xfs_dir2_data_unused {
100 __uint16_t freetag; /* XFS_DIR2_DATA_FREE_TAG */ 100 __be16 freetag; /* XFS_DIR2_DATA_FREE_TAG */
101 xfs_dir2_data_off_t length; /* total free length */ 101 __be16 length; /* total free length */
102 /* variable offset */ 102 /* variable offset */
103 xfs_dir2_data_off_t tag; /* starting offset of us */ 103 __be16 tag; /* starting offset of us */
104} xfs_dir2_data_unused_t; 104} xfs_dir2_data_unused_t;
105 105
106typedef union { 106typedef union {
@@ -151,7 +151,7 @@ static inline xfs_dir2_data_off_t *
151xfs_dir2_data_unused_tag_p(xfs_dir2_data_unused_t *dup) 151xfs_dir2_data_unused_tag_p(xfs_dir2_data_unused_t *dup)
152{ 152{
153 return (xfs_dir2_data_off_t *) \ 153 return (xfs_dir2_data_off_t *) \
154 ((char *)(dup) + INT_GET((dup)->length, ARCH_CONVERT) \ 154 ((char *)(dup) + be16_to_cpu((dup)->length) \
155 - (uint)sizeof(xfs_dir2_data_off_t)); 155 - (uint)sizeof(xfs_dir2_data_off_t));
156} 156}
157 157