From: Christoph Hellwig Date: Mon, 22 Dec 2008 14:59:06 +0000 (-0500) Subject: [XFS] handle unaligned data in xfs_bmbt_disk_get_all X-Git-Tag: v2.6.29-rc1~552^2~2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=ad1ad968f4e7b06c75741575ea077e25a87da49a;p=linux-2.6-omap-h63xx.git [XFS] handle unaligned data in xfs_bmbt_disk_get_all In libxfs xfs_bmbt_disk_get_all needs to handle unaligned data and thus has been updated to use get_unaligned_be64. In kernelspace we don't strictly need it as the routine is only used for tracing and xfsidbg, but let's keep the two implementations in sync. Signed-off-by: Christoph Hellwig Signed-off-by: Lachlan McIlroy --- diff --git a/fs/xfs/xfs_bmap_btree.c b/fs/xfs/xfs_bmap_btree.c index e46e02b8e27..8f1ec73725d 100644 --- a/fs/xfs/xfs_bmap_btree.c +++ b/fs/xfs/xfs_bmap_btree.c @@ -208,7 +208,8 @@ xfs_bmbt_disk_get_all( xfs_bmbt_rec_t *r, xfs_bmbt_irec_t *s) { - __xfs_bmbt_get_all(be64_to_cpu(r->l0), be64_to_cpu(r->l1), s); + __xfs_bmbt_get_all(get_unaligned_be64(&r->l0), + get_unaligned_be64(&r->l1), s); } /*