diff options
author | 2020-09-05 10:04:53 -0700 | |
---|---|---|
committer | 2020-09-05 10:04:53 -0700 | |
commit | 9322c47b21b9e05d7f9c037aa2c472e9f0dc7f3b (patch) | |
tree | 134d8cf2bc4c3402698225a8067fe62aac09a122 /fs | |
parent | xfs: don't update mtime on COW faults (diff) | |
parent | xfs: fix xfs_bmap_validate_extent_raw when checking attr fork of rt files (diff) | |
download | linux-9322c47b21b9e05d7f9c037aa2c472e9f0dc7f3b.tar.gz linux-9322c47b21b9e05d7f9c037aa2c472e9f0dc7f3b.tar.bz2 linux-9322c47b21b9e05d7f9c037aa2c472e9f0dc7f3b.zip |
Merge tag 'xfs-5.9-fixes-2' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux
Pull xfs fix from Darrick Wong:
"Fix a broken metadata verifier that would incorrectly validate attr
fork extents of a realtime file against the realtime volume"
* tag 'xfs-5.9-fixes-2' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux:
xfs: fix xfs_bmap_validate_extent_raw when checking attr fork of rt files
Diffstat (limited to 'fs')
-rw-r--r-- | fs/xfs/libxfs/xfs_bmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/libxfs/xfs_bmap.c b/fs/xfs/libxfs/xfs_bmap.c index 9c40d5971035..1b0a01b06a05 100644 --- a/fs/xfs/libxfs/xfs_bmap.c +++ b/fs/xfs/libxfs/xfs_bmap.c @@ -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)) |