Re: [PATCH 13/15] xfs: widen btree maxlevels computation to handle 64-bit record counts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux