summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_dir2_sf.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2011-07-08 14:35:58 +0200
committerChristoph Hellwig <hch@lst.de>2011-07-08 14:35:58 +0200
commit218106a1104c598011e5df9d9aac7e0416be03e6 (patch)
treebdec31d1f6fd5fe11eed76bac56017affd3d1606 /fs/xfs/xfs_dir2_sf.h
parent2282396d8157033503318fe4dee77ba82dc9d144 (diff)
downloadlinux-218106a1104c598011e5df9d9aac7e0416be03e6.tar.bz2
xfs: use generic get_unaligned_beXX helpers
Switch the shortform directory code over to use the generic get_unaligned_beXX helpers instead of reinventing them. As a result kill off xfs_arch.h and move the setting of XFS_NATIVE_HOST into xfs_linux.h. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Alex Elder <aelder@sgi.com> Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/xfs/xfs_dir2_sf.h')
-rw-r--r--fs/xfs/xfs_dir2_sf.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_dir2_sf.h b/fs/xfs/xfs_dir2_sf.h
index 65c5763905c9..26f062912395 100644
--- a/fs/xfs/xfs_dir2_sf.h
+++ b/fs/xfs/xfs_dir2_sf.h
@@ -95,13 +95,13 @@ static inline int xfs_dir2_sf_hdr_size(int i8count)
static inline xfs_dir2_data_aoff_t
xfs_dir2_sf_get_offset(xfs_dir2_sf_entry_t *sfep)
{
- return INT_GET_UNALIGNED_16_BE(&(sfep)->offset.i);
+ return get_unaligned_be16(&sfep->offset.i);
}
static inline void
xfs_dir2_sf_put_offset(xfs_dir2_sf_entry_t *sfep, xfs_dir2_data_aoff_t off)
{
- INT_SET_UNALIGNED_16_BE(&(sfep)->offset.i, off);
+ put_unaligned_be16(off, &sfep->offset.i);
}
static inline int