Commit d0c20d38 authored by Darrick J. Wong's avatar Darrick J. Wong
Browse files

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: 30b0984d ("xfs: refactor bmap record validation")
Signed-off-by: default avatarDarrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: default avatarEric Sandeen <sandeen@redhat.com>
parent 125eac24
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6226,7 +6226,7 @@ xfs_bmap_validate_extent(

	isrt = XFS_IS_REALTIME_INODE(ip);
	endfsb = irec->br_startblock + irec->br_blockcount - 1;
	if (isrt) {
	if (isrt && whichfork == XFS_DATA_FORK) {
		if (!xfs_verify_rtbno(mp, irec->br_startblock))
			return __this_address;
		if (!xfs_verify_rtbno(mp, endfsb))