diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2020-10-25 17:16:13 -0700 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2020-10-26 18:32:34 -0700 |
commit | 1da4ccd016283b6464b8e376caf6316f8ba9a0e3 (patch) | |
tree | 077703c2f0ce31bb2b10eb81979e66f392009341 /fs/xfs/libxfs/xfs_alloc.c | |
parent | fba4d092c9574ccee2fefc4acd18b0bf6b6d0599 (diff) |
xfs: support dynamic btree cursor sizebtree-dynamic-depth_2020-10-26
Split out the btree level information into a separate struct and put it
at the end of the cursor structure as a VLA. The realtime rmapbt will
require the ability to support many more levels than a regular cursor.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'fs/xfs/libxfs/xfs_alloc.c')
-rw-r--r-- | fs/xfs/libxfs/xfs_alloc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/xfs/libxfs/xfs_alloc.c b/fs/xfs/libxfs/xfs_alloc.c index 4254ff4e1a20..3f57d4281629 100644 --- a/fs/xfs/libxfs/xfs_alloc.c +++ b/fs/xfs/libxfs/xfs_alloc.c @@ -498,8 +498,8 @@ xfs_alloc_fixup_trees( struct xfs_btree_block *bnoblock; struct xfs_btree_block *cntblock; - bnoblock = XFS_BUF_TO_BLOCK(bno_cur->bc_bufs[0]); - cntblock = XFS_BUF_TO_BLOCK(cnt_cur->bc_bufs[0]); + bnoblock = XFS_BUF_TO_BLOCK(bno_cur->bc_levels[0].bp); + cntblock = XFS_BUF_TO_BLOCK(cnt_cur->bc_levels[0].bp); if (XFS_IS_CORRUPT(mp, bnoblock->bb_numrecs != @@ -1549,7 +1549,7 @@ xfs_alloc_ag_vextent_lastblock( * than minlen. */ if (*len || args->alignment > 1) { - acur->cnt->bc_ptrs[0] = 1; + acur->cnt->bc_levels[0].ptr = 1; do { error = xfs_alloc_get_rec(acur->cnt, bno, len, &i); if (error) |