diff options
author | Darrick J. Wong <djwong@kernel.org> | 2021-09-16 12:26:56 -0700 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2021-10-19 11:45:15 -0700 |
commit | c0643f6fdd6d3c448142ed1492a9a6b6505f9afb (patch) | |
tree | ec9f193ce040806f38b138c6fcc2c11c0dd82b6f /fs/xfs/libxfs/xfs_bmap.c | |
parent | 56370ea6e5fe3e3d6e1ca2da58f95fb0d5e1779f (diff) | |
download | lwn-c0643f6fdd6d3c448142ed1492a9a6b6505f9afb.tar.gz lwn-c0643f6fdd6d3c448142ed1492a9a6b6505f9afb.zip |
xfs: encode the max btree height in the cursor
Encode the maximum btree height in the cursor, since we're soon going to
allow smaller cursors for AG btrees and larger cursors for file btrees.
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/xfs/libxfs/xfs_bmap.c')
-rw-r--r-- | fs/xfs/libxfs/xfs_bmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/libxfs/xfs_bmap.c b/fs/xfs/libxfs/xfs_bmap.c index 644b956301b6..2ae5bf9a74e7 100644 --- a/fs/xfs/libxfs/xfs_bmap.c +++ b/fs/xfs/libxfs/xfs_bmap.c @@ -239,7 +239,7 @@ xfs_bmap_get_bp( if (!cur) return NULL; - for (i = 0; i < XFS_BTREE_MAXLEVELS; i++) { + for (i = 0; i < cur->bc_maxlevels; i++) { if (!cur->bc_levels[i].bp) break; if (xfs_buf_daddr(cur->bc_levels[i].bp) == bno) |