diff options
Diffstat (limited to 'fs/xfs/xfs_bmap_btree.c')
-rw-r--r-- | fs/xfs/xfs_bmap_btree.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/xfs/xfs_bmap_btree.c b/fs/xfs/xfs_bmap_btree.c index 87d3c10b6954..50a28442a544 100644 --- a/fs/xfs/xfs_bmap_btree.c +++ b/fs/xfs/xfs_bmap_btree.c | |||
@@ -425,10 +425,10 @@ xfs_bmbt_to_bmdr( | |||
425 | xfs_bmbt_key_t *tkp; | 425 | xfs_bmbt_key_t *tkp; |
426 | __be64 *tpp; | 426 | __be64 *tpp; |
427 | 427 | ||
428 | ASSERT(be32_to_cpu(rblock->bb_magic) == XFS_BMAP_MAGIC); | 428 | ASSERT(rblock->bb_magic == cpu_to_be32(XFS_BMAP_MAGIC)); |
429 | ASSERT(be64_to_cpu(rblock->bb_u.l.bb_leftsib) == NULLDFSBNO); | 429 | ASSERT(rblock->bb_u.l.bb_leftsib == cpu_to_be64(NULLDFSBNO)); |
430 | ASSERT(be64_to_cpu(rblock->bb_u.l.bb_rightsib) == NULLDFSBNO); | 430 | ASSERT(rblock->bb_u.l.bb_rightsib == cpu_to_be64(NULLDFSBNO)); |
431 | ASSERT(be16_to_cpu(rblock->bb_level) > 0); | 431 | ASSERT(rblock->bb_level != 0); |
432 | dblock->bb_level = rblock->bb_level; | 432 | dblock->bb_level = rblock->bb_level; |
433 | dblock->bb_numrecs = rblock->bb_numrecs; | 433 | dblock->bb_numrecs = rblock->bb_numrecs; |
434 | dmxr = xfs_bmdr_maxrecs(mp, dblocklen, 0); | 434 | dmxr = xfs_bmdr_maxrecs(mp, dblocklen, 0); |