diff options
Diffstat (limited to 'fs/xfs/xfs_btree.c')
-rw-r--r-- | fs/xfs/xfs_btree.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/xfs/xfs_btree.c b/fs/xfs/xfs_btree.c index 57e858fbf683..59796b42e9c4 100644 --- a/fs/xfs/xfs_btree.c +++ b/fs/xfs/xfs_btree.c | |||
@@ -90,7 +90,7 @@ xfs_btree_check_block( | |||
90 | int level, /* level of the btree block */ | 90 | int level, /* level of the btree block */ |
91 | xfs_buf_t *bp) /* buffer containing block, if any */ | 91 | xfs_buf_t *bp) /* buffer containing block, if any */ |
92 | { | 92 | { |
93 | if (XFS_BTREE_LONG_PTRS(cur->bc_btnum)) | 93 | if (cur->bc_flags & XFS_BTREE_LONG_PTRS) |
94 | xfs_btree_check_lblock(cur, (xfs_btree_lblock_t *)block, level, | 94 | xfs_btree_check_lblock(cur, (xfs_btree_lblock_t *)block, level, |
95 | bp); | 95 | bp); |
96 | else | 96 | else |
@@ -516,7 +516,7 @@ xfs_btree_islastblock( | |||
516 | 516 | ||
517 | block = xfs_btree_get_block(cur, level, &bp); | 517 | block = xfs_btree_get_block(cur, level, &bp); |
518 | xfs_btree_check_block(cur, block, level, bp); | 518 | xfs_btree_check_block(cur, block, level, bp); |
519 | if (XFS_BTREE_LONG_PTRS(cur->bc_btnum)) | 519 | if (cur->bc_flags & XFS_BTREE_LONG_PTRS) |
520 | return be64_to_cpu(block->bb_u.l.bb_rightsib) == NULLDFSBNO; | 520 | return be64_to_cpu(block->bb_u.l.bb_rightsib) == NULLDFSBNO; |
521 | else | 521 | else |
522 | return be32_to_cpu(block->bb_u.s.bb_rightsib) == NULLAGBLOCK; | 522 | return be32_to_cpu(block->bb_u.s.bb_rightsib) == NULLAGBLOCK; |
@@ -808,7 +808,7 @@ xfs_btree_setbuf( | |||
808 | if (!bp) | 808 | if (!bp) |
809 | return; | 809 | return; |
810 | b = XFS_BUF_TO_BLOCK(bp); | 810 | b = XFS_BUF_TO_BLOCK(bp); |
811 | if (XFS_BTREE_LONG_PTRS(cur->bc_btnum)) { | 811 | if (cur->bc_flags & XFS_BTREE_LONG_PTRS) { |
812 | if (be64_to_cpu(b->bb_u.l.bb_leftsib) == NULLDFSBNO) | 812 | if (be64_to_cpu(b->bb_u.l.bb_leftsib) == NULLDFSBNO) |
813 | cur->bc_ra[lev] |= XFS_BTCUR_LEFTRA; | 813 | cur->bc_ra[lev] |= XFS_BTCUR_LEFTRA; |
814 | if (be64_to_cpu(b->bb_u.l.bb_rightsib) == NULLDFSBNO) | 814 | if (be64_to_cpu(b->bb_u.l.bb_rightsib) == NULLDFSBNO) |