]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: refactor bmap record validation
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 23 Mar 2018 17:06:52 +0000 (10:06 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Sat, 24 Mar 2018 01:05:07 +0000 (18:05 -0700)
commit34d3302d2d7326e0378cd103daec8b3cca4eb066
treec83233ce6ee62c7675651091c584b8d40bf2d27e
parent00d2bd7a8b3950fbc429f4a80745cd57137a9f4a
xfs: refactor bmap record validation

Refactor the bmap validator into a more complete helper that looks for
extents that run off the end of the device, overflow into the next AG,
or have invalid flag states.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
fs/xfs/libxfs/xfs_bmap.c
fs/xfs/libxfs/xfs_bmap.h
fs/xfs/libxfs/xfs_bmap_btree.h
fs/xfs/libxfs/xfs_inode_fork.c