Skip to content

Commit d0c20d3

Browse files
committed
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: 30b0984 ("xfs: refactor bmap record validation") Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Reviewed-by: Eric Sandeen <sandeen@redhat.com>
1 parent 125eac2 commit d0c20d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/xfs/libxfs/xfs_bmap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6226,7 +6226,7 @@ xfs_bmap_validate_extent(
62266226

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

0 commit comments

Comments
 (0)