On Tue, Oct 12, 2021 at 04:33:45PM -0700, Darrick J. Wong wrote: > From: Darrick J. Wong <djwong@xxxxxxxxxx> > > Rework xfs_btree_compute_maxlevels to handle larger record counts, since > we're about to add support for very large data forks. Eventually the > realtime reverse mapping btree will need this too. > > Signed-off-by: Darrick J. Wong <djwong@xxxxxxxxxx> > --- > fs/xfs/libxfs/xfs_btree.c | 16 ++++++++-------- > fs/xfs/libxfs/xfs_btree.h | 3 ++- > 2 files changed, 10 insertions(+), 9 deletions(-) Looks good. howmany_64() uses do_div() properly so there shouldn't be any issues with this on 32 bit platforms. Reviewed-by: Dave Chinner <dchinner@xxxxxxxxxx> -- Dave Chinner david@xxxxxxxxxxxxx