Re: [PATCH 02/13] xfs: create a predicate to verify per-AG extents

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

 



On Sun, Oct 30, 2022 at 04:41:33PM -0700, Darrick J. Wong wrote:
> From: Darrick J. Wong <djwong@xxxxxxxxxx>
> 
> Create a predicate function to verify that a given agbno/blockcount pair
> fit entirely within a single allocation group and don't suffer
> mathematical overflows.  Refactor the existng open-coded logic; we're
> going to add more calls to this function in the next patch.
> 
> Signed-off-by: Darrick J. Wong <djwong@xxxxxxxxxx>
> ---
>  fs/xfs/libxfs/xfs_ag.h       |   15 +++++++++++++++
>  fs/xfs/libxfs/xfs_alloc.c    |    6 +-----
>  fs/xfs/libxfs/xfs_refcount.c |    6 +-----
>  fs/xfs/libxfs/xfs_rmap.c     |    9 ++-------
>  fs/xfs/scrub/alloc.c         |    4 +---
>  fs/xfs/scrub/ialloc.c        |    5 ++---
>  fs/xfs/scrub/refcount.c      |    5 ++---
>  7 files changed, 24 insertions(+), 26 deletions(-)

Nice!

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