]> 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)
commit27842646224416d5fd2b2e8d251127a469068545
tree953541b86d06cdbb48e7f8d0f0d5707b2b627cb6
parent80844c73aea66360a9da7da932f8750ce1774507
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