]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
xfs: handle non-inode owners for rtrmap record checking
authorDarrick J. Wong <djwong@kernel.org>
Tue, 14 Jul 2026 06:06:43 +0000 (23:06 -0700)
committerCarlos Maiolino <cem@kernel.org>
Tue, 14 Jul 2026 09:01:47 +0000 (11:01 +0200)
commit353a5900bc85234e7df05caac37698042dc26348
treeb3034ce269411291cdf3c69cbdc4055b24114f81
parent5d72a68f2007ba2a968d6bf47dba3f4620bd182e
xfs: handle non-inode owners for rtrmap record checking

LOLLM noticed that two helper functions in the rtrmapbt scrub code don't
actually handle non-inode owners correctly -- CoW staging extents and
rgsuperblock extents are not shareable, but they are mergeable.  Fix
these two helpers.

Cc: stable@vger.kernel.org # v6.14
Fixes: 2d9a3e98053e8c ("xfs: allow overlapping rtrmapbt records for shared data extents")
Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Assisted-by: LOLLM # finding obvious bugs
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/scrub/rtrmap.c