]> git.baikalelectronics.ru Git - kernel.git/commit
xfs: fix xfs_bmap_validate_extent_raw when checking attr fork of rt files
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 2 Sep 2020 17:47:02 +0000 (10:47 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 3 Sep 2020 15:33:50 +0000 (08:33 -0700)
commitb111e77d9f1b3d1c94a11a6aefb39829155e3643
treed748b44509029f81de0435563385e285f315ce70
parentf7c0c6d744e0c2a53bfda48dd8a77332821081d1
xfs: fix xfs_bmap_validate_extent_raw when checking attr fork of rt files

The realtime flag only applies to the data fork, so don't use the
realtime block number checks on the attr fork of a realtime file.

Fixes: 3b113206d9a0 ("xfs: refactor bmap record validation")
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
fs/xfs/libxfs/xfs_bmap.c