diff options
Diffstat (limited to 'fs/xfs/xfs_bmap_btree.c')
-rw-r--r-- | fs/xfs/xfs_bmap_btree.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/xfs/xfs_bmap_btree.c b/fs/xfs/xfs_bmap_btree.c index aab8e3f06aca..a7b835bf870a 100644 --- a/fs/xfs/xfs_bmap_btree.c +++ b/fs/xfs/xfs_bmap_btree.c | |||
@@ -352,7 +352,7 @@ xfs_bmbt_delrec( | |||
352 | XFS_BMBT_TRACE_CURSOR(cur, ENTRY); | 352 | XFS_BMBT_TRACE_CURSOR(cur, ENTRY); |
353 | XFS_BMBT_TRACE_ARGI(cur, level); | 353 | XFS_BMBT_TRACE_ARGI(cur, level); |
354 | ptr = cur->bc_ptrs[level]; | 354 | ptr = cur->bc_ptrs[level]; |
355 | tcur = (xfs_btree_cur_t *)0; | 355 | tcur = NULL; |
356 | if (ptr == 0) { | 356 | if (ptr == 0) { |
357 | XFS_BMBT_TRACE_CURSOR(cur, EXIT); | 357 | XFS_BMBT_TRACE_CURSOR(cur, EXIT); |
358 | *stat = 0; | 358 | *stat = 0; |
@@ -755,7 +755,7 @@ xfs_bmbt_insrec( | |||
755 | ASSERT(level < cur->bc_nlevels); | 755 | ASSERT(level < cur->bc_nlevels); |
756 | XFS_BMBT_TRACE_CURSOR(cur, ENTRY); | 756 | XFS_BMBT_TRACE_CURSOR(cur, ENTRY); |
757 | XFS_BMBT_TRACE_ARGIFR(cur, level, *bnop, recp); | 757 | XFS_BMBT_TRACE_ARGIFR(cur, level, *bnop, recp); |
758 | ncur = (xfs_btree_cur_t *)0; | 758 | ncur = NULL; |
759 | key.br_startoff = cpu_to_be64(xfs_bmbt_disk_get_startoff(recp)); | 759 | key.br_startoff = cpu_to_be64(xfs_bmbt_disk_get_startoff(recp)); |
760 | optr = ptr = cur->bc_ptrs[level]; | 760 | optr = ptr = cur->bc_ptrs[level]; |
761 | if (ptr == 0) { | 761 | if (ptr == 0) { |
@@ -1126,7 +1126,7 @@ xfs_bmbt_lookup( | |||
1126 | d = XFS_FSB_TO_DADDR(mp, fsbno); | 1126 | d = XFS_FSB_TO_DADDR(mp, fsbno); |
1127 | bp = cur->bc_bufs[level]; | 1127 | bp = cur->bc_bufs[level]; |
1128 | if (bp && XFS_BUF_ADDR(bp) != d) | 1128 | if (bp && XFS_BUF_ADDR(bp) != d) |
1129 | bp = (xfs_buf_t *)0; | 1129 | bp = NULL; |
1130 | if (!bp) { | 1130 | if (!bp) { |
1131 | if ((error = xfs_btree_read_bufl(mp, tp, fsbno, | 1131 | if ((error = xfs_btree_read_bufl(mp, tp, fsbno, |
1132 | 0, &bp, XFS_BMAP_BTREE_REF))) { | 1132 | 0, &bp, XFS_BMAP_BTREE_REF))) { |
@@ -2170,7 +2170,7 @@ xfs_bmbt_insert( | |||
2170 | level = 0; | 2170 | level = 0; |
2171 | nbno = NULLFSBLOCK; | 2171 | nbno = NULLFSBLOCK; |
2172 | xfs_bmbt_disk_set_all(&nrec, &cur->bc_rec.b); | 2172 | xfs_bmbt_disk_set_all(&nrec, &cur->bc_rec.b); |
2173 | ncur = (xfs_btree_cur_t *)0; | 2173 | ncur = NULL; |
2174 | pcur = cur; | 2174 | pcur = cur; |
2175 | do { | 2175 | do { |
2176 | if ((error = xfs_bmbt_insrec(pcur, level++, &nbno, &nrec, &ncur, | 2176 | if ((error = xfs_bmbt_insrec(pcur, level++, &nbno, &nrec, &ncur, |
@@ -2197,7 +2197,7 @@ xfs_bmbt_insert( | |||
2197 | } | 2197 | } |
2198 | if (ncur) { | 2198 | if (ncur) { |
2199 | pcur = ncur; | 2199 | pcur = ncur; |
2200 | ncur = (xfs_btree_cur_t *)0; | 2200 | ncur = NULL; |
2201 | } | 2201 | } |
2202 | } while (nbno != NULLFSBLOCK); | 2202 | } while (nbno != NULLFSBLOCK); |
2203 | XFS_BMBT_TRACE_CURSOR(cur, EXIT); | 2203 | XFS_BMBT_TRACE_CURSOR(cur, EXIT); |