diff options
Diffstat (limited to 'fs/xfs/scrub/bitmap.c')
| -rw-r--r-- | fs/xfs/scrub/bitmap.c | 22 | 
1 files changed, 11 insertions, 11 deletions
| diff --git a/fs/xfs/scrub/bitmap.c b/fs/xfs/scrub/bitmap.c index d6d24c866bc4..b89bf9de9b1c 100644 --- a/fs/xfs/scrub/bitmap.c +++ b/fs/xfs/scrub/bitmap.c @@ -222,21 +222,21 @@ out:   * 1  2  3   *   * Pretend for this example that each leaf block has 100 btree records.  For - * the first btree record, we'll observe that bc_ptrs[0] == 1, so we record - * that we saw block 1.  Then we observe that bc_ptrs[1] == 1, so we record - * block 4.  The list is [1, 4]. + * the first btree record, we'll observe that bc_levels[0].ptr == 1, so we + * record that we saw block 1.  Then we observe that bc_levels[1].ptr == 1, so + * we record block 4.  The list is [1, 4].   * - * For the second btree record, we see that bc_ptrs[0] == 2, so we exit the - * loop.  The list remains [1, 4]. + * For the second btree record, we see that bc_levels[0].ptr == 2, so we exit + * the loop.  The list remains [1, 4].   *   * For the 101st btree record, we've moved onto leaf block 2.  Now - * bc_ptrs[0] == 1 again, so we record that we saw block 2.  We see that - * bc_ptrs[1] == 2, so we exit the loop.  The list is now [1, 4, 2]. + * bc_levels[0].ptr == 1 again, so we record that we saw block 2.  We see that + * bc_levels[1].ptr == 2, so we exit the loop.  The list is now [1, 4, 2].   * - * For the 102nd record, bc_ptrs[0] == 2, so we continue. + * For the 102nd record, bc_levels[0].ptr == 2, so we continue.   * - * For the 201st record, we've moved on to leaf block 3.  bc_ptrs[0] == 1, so - * we add 3 to the list.  Now it is [1, 4, 2, 3]. + * For the 201st record, we've moved on to leaf block 3. + * bc_levels[0].ptr == 1, so we add 3 to the list.  Now it is [1, 4, 2, 3].   *   * For the 300th record we just exit, with the list being [1, 4, 2, 3].   */ @@ -256,7 +256,7 @@ xbitmap_set_btcur_path(  	int			i;  	int			error; -	for (i = 0; i < cur->bc_nlevels && cur->bc_ptrs[i] == 1; i++) { +	for (i = 0; i < cur->bc_nlevels && cur->bc_levels[i].ptr == 1; i++) {  		xfs_btree_get_block(cur, i, &bp);  		if (!bp)  			continue; |