xfs: create inode pointer verifiers
Create some helper functions to check that inode pointers point to somewhere within the filesystem and not at the static AG metadata. Move xfs_internal_inum and create a directory inode check function. We will use these functions in scrub and elsewhere. Signed-off-by:Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by:
Dave Chinner <dchinner@redhat.com>
Showing
- fs/xfs/libxfs/xfs_dir2.c 3 additions, 16 deletionsfs/xfs/libxfs/xfs_dir2.c
- fs/xfs/libxfs/xfs_ialloc.c 90 additions, 0 deletionsfs/xfs/libxfs/xfs_ialloc.c
- fs/xfs/libxfs/xfs_ialloc.h 7 additions, 0 deletionsfs/xfs/libxfs/xfs_ialloc.h
- fs/xfs/xfs_itable.c 0 additions, 10 deletionsfs/xfs/xfs_itable.c
- fs/xfs/xfs_itable.h 0 additions, 2 deletionsfs/xfs/xfs_itable.h
Please register or sign in to comment