Skip to contentSkip to conversation

xfs: use get_unaligned_* helpers

PATCH Applied Harvey Harrison 1 participant 1 message May 2, 2008 XFS filesystem

lore
Share & tools
lore
#0 lore raw

PATCH 6/8 xfs: use get_unaligned_* helpers

---
 fs/xfs/xfs_inode.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
fs/xfs/xfs_inode.c +2 -2
index cf0bb9c..c6327c4 100644
@@ -580,8 +580,8 @@ xfs_iformat_extents(
 		xfs_validate_extents(ifp, nex, XFS_EXTFMT_INODE(ip));
 		for (i = 0; i < nex; i++, dp++) {
 			xfs_bmbt_rec_host_t *ep = xfs_iext_get_ext(ifp, i);
-			ep->l0 = be64_to_cpu(get_unaligned(&dp->l0));
-			ep->l1 = be64_to_cpu(get_unaligned(&dp->l1));
+			ep->l0 = get_unaligned_be64(&dp->l0);
+			ep->l1 = get_unaligned_be64(&dp->l1);
 		}
 		XFS_BMAP_TRACE_EXLIST(ip, nex, whichfork);
 		if (whichfork != XFS_DATA_FORK ||
Signature · 1 line
1.5.5.1.350.gbbbf