]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: create block pointer check functions
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 18 Oct 2017 04:37:32 +0000 (21:37 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 26 Oct 2017 22:38:23 +0000 (15:38 -0700)
commitbc6e556575317ec9884c26a3accc9b09744daacd
tree953541b86d06cdbb48e7f8d0f0d5707b2b627cb6
parent0324f4d54a22e6597e3b6dab6c07eff4b4fcfd39
xfs: create block pointer check functions

Create some helper functions to check that a block pointer points
within the filesystem (or AG) and doesn't point at static metadata.
We will use this for scrub.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/libxfs/xfs_alloc.c
fs/xfs/libxfs/xfs_alloc.h
fs/xfs/libxfs/xfs_rtbitmap.c
fs/xfs/xfs_rtalloc.h