Re: [PATCH 08/15] xfs: encode the max btree height in the cursor
From: Dave Chinner <david@fromorbit.com>
Date: 2021-10-13 05:38:43
From: Dave Chinner <david@fromorbit.com>
Date: 2021-10-13 05:38:43
On Tue, Oct 12, 2021 at 04:33:17PM -0700, Darrick J. Wong wrote:
From: Darrick J. Wong <djwong@kernel.org> 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> --- fs/xfs/libxfs/xfs_bmap.c | 2 +- fs/xfs/libxfs/xfs_btree.c | 4 ++-- fs/xfs/libxfs/xfs_btree.h | 2 ++ fs/xfs/libxfs/xfs_btree_staging.c | 10 +++++----- 4 files changed, 10 insertions(+), 8 deletions(-)
Looks ok, and fills part of the hole in the btree cursor structure so doesn't grow it again. Reviewed-by: Dave Chinner <redacted> -- Dave Chinner david@fromorbit.com