diff options
author | Christoph Hellwig <hch@infradead.org> | 2008-12-22 09:59:06 -0500 |
---|---|---|
committer | Lachlan McIlroy <lachlan@redback.melbourne.sgi.com> | 2008-12-22 19:54:46 -0500 |
commit | ad1ad968f4e7b06c75741575ea077e25a87da49a (patch) | |
tree | 906f959fa323d9fcfc5e31d7fb2046e544b27b35 /fs/xfs | |
parent | efc557570dc99b46e46a7be51c3c7402b485e829 (diff) |
[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 <hch@lst.de>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
Diffstat (limited to 'fs/xfs')
-rw-r--r-- | fs/xfs/xfs_bmap_btree.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/xfs/xfs_bmap_btree.c b/fs/xfs/xfs_bmap_btree.c index e46e02b8e277..8f1ec73725d3 100644 --- a/fs/xfs/xfs_bmap_btree.c +++ b/fs/xfs/xfs_bmap_btree.c | |||
@@ -208,7 +208,8 @@ xfs_bmbt_disk_get_all( | |||
208 | xfs_bmbt_rec_t *r, | 208 | xfs_bmbt_rec_t *r, |
209 | xfs_bmbt_irec_t *s) | 209 | xfs_bmbt_irec_t *s) |
210 | { | 210 | { |
211 | __xfs_bmbt_get_all(be64_to_cpu(r->l0), be64_to_cpu(r->l1), s); | 211 | __xfs_bmbt_get_all(get_unaligned_be64(&r->l0), |
212 | get_unaligned_be64(&r->l1), s); | ||
212 | } | 213 | } |
213 | 214 | ||
214 | /* | 215 | /* |