]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: create a predicate to verify per-AG extents
authorDarrick J. Wong <djwong@kernel.org>
Fri, 18 Nov 2022 10:01:45 +0000 (11:01 +0100)
committerCarlos Maiolino <cem@kernel.org>
Mon, 21 Nov 2022 14:26:48 +0000 (15:26 +0100)
commitb3f9ae08edf57cbe0e6947a0b66d7c07e02c0639
tree3fd40d1cbf6991c73e466d525c96a400ba5bb7b4
parent2d5166b9dd5adc87a1399d4f3b0ef4569526798e
xfs: create a predicate to verify per-AG extents

Source kernel commit: b65e08f83b119ae9345ed23d4da357a72b3cb55c

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@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
libxfs/xfs_ag.h
libxfs/xfs_alloc.c
libxfs/xfs_refcount.c
libxfs/xfs_rmap.c