]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: refactor file range validation
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 7 Jan 2021 20:59:17 +0000 (15:59 -0500)
committerEric Sandeen <sandeen@sandeen.net>
Thu, 7 Jan 2021 20:59:17 +0000 (15:59 -0500)
commit7626c690ec70f33f577639ebd97b431af5bf1e65
tree3d6f760a3c0f549b3a2e0bd1e7b93277523da86b
parent23e306aeb2a0c36f0872a97fad877c8609903d35
xfs: refactor file range validation

Source kernel commit: 33005fd0a537501111fc97ec330b721388c6b451

Refactor all the open-coded validation of file block ranges into a
single helper, and teach the bmap scrubber to check the ranges.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_bmap.c
libxfs/xfs_types.c
libxfs/xfs_types.h