aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_bmap.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2007-08-16 02:24:15 -0400
committerTim Shimmin <tes@chook.melbourne.sgi.com>2007-10-15 02:26:44 -0400
commitcd8b0a97bd9216578a44a9bf82188cd901295964 (patch)
tree36ae580e2f8b1e05747a387c50b852db7f929798 /fs/xfs/xfs_bmap.c
parente05596643d4bb5ab7d813d1ac5724178ca4c7134 (diff)
[XFS] endianess annotations for xfs_bmbt_rec_t
SGI-PV: 968563 SGI-Modid: xfs-linux-melb:xfs-kern:29321a Signed-off-by: Christoph Hellwig <hch@infradead.org> Signed-off-by: David Chinner <dgc@sgi.com> Signed-off-by: Tim Shimmin <tes@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_bmap.c')
-rw-r--r--fs/xfs/xfs_bmap.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/xfs/xfs_bmap.c b/fs/xfs/xfs_bmap.c
index bbef39432be2..9abe93cfb5cc 100644
--- a/fs/xfs/xfs_bmap.c
+++ b/fs/xfs/xfs_bmap.c
@@ -3492,8 +3492,8 @@ xfs_bmap_extents_to_btree(
3492 for (cnt = i = 0; i < nextents; i++) { 3492 for (cnt = i = 0; i < nextents; i++) {
3493 ep = xfs_iext_get_ext(ifp, i); 3493 ep = xfs_iext_get_ext(ifp, i);
3494 if (!ISNULLSTARTBLOCK(xfs_bmbt_get_startblock(ep))) { 3494 if (!ISNULLSTARTBLOCK(xfs_bmbt_get_startblock(ep))) {
3495 arp->l0 = INT_GET(ep->l0, ARCH_CONVERT); 3495 arp->l0 = cpu_to_be64(ep->l0);
3496 arp->l1 = INT_GET(ep->l1, ARCH_CONVERT); 3496 arp->l1 = cpu_to_be64(ep->l1);
3497 arp++; cnt++; 3497 arp++; cnt++;
3498 } 3498 }
3499 } 3499 }
@@ -4566,8 +4566,8 @@ xfs_bmap_read_extents(
4566 start = i; 4566 start = i;
4567 for (j = 0; j < num_recs; j++, i++, frp++) { 4567 for (j = 0; j < num_recs; j++, i++, frp++) {
4568 xfs_bmbt_rec_host_t *trp = xfs_iext_get_ext(ifp, i); 4568 xfs_bmbt_rec_host_t *trp = xfs_iext_get_ext(ifp, i);
4569 trp->l0 = INT_GET(frp->l0, ARCH_CONVERT); 4569 trp->l0 = be64_to_cpu(frp->l0);
4570 trp->l1 = INT_GET(frp->l1, ARCH_CONVERT); 4570 trp->l1 = be64_to_cpu(frp->l1);
4571 } 4571 }
4572 if (exntf == XFS_EXTFMT_NOSTATE) { 4572 if (exntf == XFS_EXTFMT_NOSTATE) {
4573 /* 4573 /*