aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_dir2_data.h
diff options
context:
space:
mode:
authorNathan Scott <nathans@sgi.com>2006-03-17 01:27:47 -0500
committerNathan Scott <nathans@sgi.com>2006-03-17 01:27:47 -0500
commit1fba9f7fe2164553557e26583e6feb5299cf9f76 (patch)
tree3504af3f9bb748f53683be1fc8f317e7b14ba5dc /fs/xfs/xfs_dir2_data.h
parentad354eb34eb354eedc483d1e89e17710165bd2db (diff)
[XFS] endianess annotations for XFS_DIR2_DATA_UNUSED_TAG_P
SGI-PV: 943272 SGI-Modid: xfs-linux-melb:xfs-kern:25490a 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.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/xfs/xfs_dir2_data.h b/fs/xfs/xfs_dir2_data.h
index 28adddb48e88..479b59f50dbc 100644
--- a/fs/xfs/xfs_dir2_data.h
+++ b/fs/xfs/xfs_dir2_data.h
@@ -147,12 +147,11 @@ xfs_dir2_data_entry_tag_p(xfs_dir2_data_entry_t *dep)
147 */ 147 */
148#define XFS_DIR2_DATA_UNUSED_TAG_P(dup) \ 148#define XFS_DIR2_DATA_UNUSED_TAG_P(dup) \
149 xfs_dir2_data_unused_tag_p(dup) 149 xfs_dir2_data_unused_tag_p(dup)
150static inline xfs_dir2_data_off_t * 150static inline __be16 *
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 (__be16 *)((char *)dup +
154 ((char *)(dup) + be16_to_cpu((dup)->length) \ 154 be16_to_cpu(dup->length) - sizeof(__be16));
155 - (uint)sizeof(xfs_dir2_data_off_t));
156} 155}
157 156
158/* 157/*