]> git.proxmox.com Git - mirror_ubuntu-focal-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)
committerKelsey Skunberg <kelsey.skunberg@canonical.com>
Thu, 17 Sep 2020 06:47:05 +0000 (00:47 -0600)
commit9276b30f69f6e7ab855f87ee463d6c6773db27d3
tree21bc0d98ea6d540a702544bf712c84bdd6c33114
parent604d1e13bfeb1fc18fe9453e74f91f355f5c3637
xfs: fix xfs_bmap_validate_extent_raw when checking attr fork of rt files

BugLink: https://bugs.launchpad.net/bugs/1895880
[ Upstream commit d0c20d38af135b2b4b90aa59df7878ef0c8fbef4 ]

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: 30b0984d9117 ("xfs: refactor bmap record validation")
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: William Breathitt Gray <william.gray@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
fs/xfs/libxfs/xfs_bmap.c