diff options
Diffstat (limited to 'fs/xfs/xfs_alloc_btree.c')
-rw-r--r-- | fs/xfs/xfs_alloc_btree.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/fs/xfs/xfs_alloc_btree.c b/fs/xfs/xfs_alloc_btree.c index 7446556e8021..ec0bbd4140e4 100644 --- a/fs/xfs/xfs_alloc_btree.c +++ b/fs/xfs/xfs_alloc_btree.c | |||
@@ -774,7 +774,7 @@ xfs_alloc_insrec( | |||
774 | * Now stuff the new record in, bump numrecs | 774 | * Now stuff the new record in, bump numrecs |
775 | * and log the new data. | 775 | * and log the new data. |
776 | */ | 776 | */ |
777 | rp[ptr - 1] = *recp; /* INT_: struct copy */ | 777 | rp[ptr - 1] = *recp; |
778 | be16_add(&block->bb_numrecs, 1); | 778 | be16_add(&block->bb_numrecs, 1); |
779 | xfs_alloc_log_recs(cur, bp, ptr, be16_to_cpu(block->bb_numrecs)); | 779 | xfs_alloc_log_recs(cur, bp, ptr, be16_to_cpu(block->bb_numrecs)); |
780 | #ifdef DEBUG | 780 | #ifdef DEBUG |
@@ -819,8 +819,8 @@ xfs_alloc_insrec( | |||
819 | */ | 819 | */ |
820 | *bnop = nbno; | 820 | *bnop = nbno; |
821 | if (nbno != NULLAGBLOCK) { | 821 | if (nbno != NULLAGBLOCK) { |
822 | *recp = nrec; /* INT_: struct copy */ | 822 | *recp = nrec; |
823 | *curp = ncur; /* INT_: struct copy */ | 823 | *curp = ncur; |
824 | } | 824 | } |
825 | *stat = 1; | 825 | *stat = 1; |
826 | return 0; | 826 | return 0; |
@@ -1229,7 +1229,7 @@ xfs_alloc_lshift( | |||
1229 | if ((error = xfs_btree_check_sptr(cur, be32_to_cpu(*rpp), level))) | 1229 | if ((error = xfs_btree_check_sptr(cur, be32_to_cpu(*rpp), level))) |
1230 | return error; | 1230 | return error; |
1231 | #endif | 1231 | #endif |
1232 | *lpp = *rpp; /* INT_: copy */ | 1232 | *lpp = *rpp; |
1233 | xfs_alloc_log_ptrs(cur, lbp, nrec, nrec); | 1233 | xfs_alloc_log_ptrs(cur, lbp, nrec, nrec); |
1234 | xfs_btree_check_key(cur->bc_btnum, lkp - 1, lkp); | 1234 | xfs_btree_check_key(cur->bc_btnum, lkp - 1, lkp); |
1235 | } | 1235 | } |
@@ -1406,8 +1406,8 @@ xfs_alloc_newroot( | |||
1406 | 1406 | ||
1407 | kp = XFS_ALLOC_KEY_ADDR(new, 1, cur); | 1407 | kp = XFS_ALLOC_KEY_ADDR(new, 1, cur); |
1408 | if (be16_to_cpu(left->bb_level) > 0) { | 1408 | if (be16_to_cpu(left->bb_level) > 0) { |
1409 | kp[0] = *XFS_ALLOC_KEY_ADDR(left, 1, cur); /* INT_: structure copy */ | 1409 | kp[0] = *XFS_ALLOC_KEY_ADDR(left, 1, cur); |
1410 | kp[1] = *XFS_ALLOC_KEY_ADDR(right, 1, cur);/* INT_: structure copy */ | 1410 | kp[1] = *XFS_ALLOC_KEY_ADDR(right, 1, cur); |
1411 | } else { | 1411 | } else { |
1412 | xfs_alloc_rec_t *rp; /* btree record pointer */ | 1412 | xfs_alloc_rec_t *rp; /* btree record pointer */ |
1413 | 1413 | ||
@@ -1527,8 +1527,8 @@ xfs_alloc_rshift( | |||
1527 | if ((error = xfs_btree_check_sptr(cur, be32_to_cpu(*lpp), level))) | 1527 | if ((error = xfs_btree_check_sptr(cur, be32_to_cpu(*lpp), level))) |
1528 | return error; | 1528 | return error; |
1529 | #endif | 1529 | #endif |
1530 | *rkp = *lkp; /* INT_: copy */ | 1530 | *rkp = *lkp; |
1531 | *rpp = *lpp; /* INT_: copy */ | 1531 | *rpp = *lpp; |
1532 | xfs_alloc_log_keys(cur, rbp, 1, be16_to_cpu(right->bb_numrecs) + 1); | 1532 | xfs_alloc_log_keys(cur, rbp, 1, be16_to_cpu(right->bb_numrecs) + 1); |
1533 | xfs_alloc_log_ptrs(cur, rbp, 1, be16_to_cpu(right->bb_numrecs) + 1); | 1533 | xfs_alloc_log_ptrs(cur, rbp, 1, be16_to_cpu(right->bb_numrecs) + 1); |
1534 | xfs_btree_check_key(cur->bc_btnum, rkp, rkp + 1); | 1534 | xfs_btree_check_key(cur->bc_btnum, rkp, rkp + 1); |