diff options
Diffstat (limited to 'fs/xfs/xfs_bmap.c')
-rw-r--r-- | fs/xfs/xfs_bmap.c | 8 |
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 | /* |