Thread (35 messages) 35 messages, 2 authors, 2021-10-18

Re: [PATCH 05/17] xfs: dynamically allocate btree scrub context structure

From: Dave Chinner <david@fromorbit.com>
Date: 2021-10-14 22:49:02

On Thu, Oct 14, 2021 at 01:17:22PM -0700, Darrick J. Wong wrote:
From: Darrick J. Wong <djwong@kernel.org>

Reorganize struct xchk_btree so that we can dynamically size the context
structure to fit the type of btree cursor that we have.  This will
enable us to use memory more efficiently once we start adding very tall
btree types.  Right-size the lastkey array to match the number of *node*
levels in the tree so that we stop wasting space.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
---
 fs/xfs/scrub/btree.c |   23 ++++++++++++-----------
 fs/xfs/scrub/btree.h |   15 ++++++++++++++-
 2 files changed, 26 insertions(+), 12 deletions(-)
Looks good now.

Reviewed-by: Dave Chinner <redacted>
-- 
Dave Chinner
david@fromorbit.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help