]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
xfs: use rtrefcount btree cursor in xchk_xref_is_rt_cow_staging
authorDarrick J. Wong <djwong@kernel.org>
Tue, 14 Jul 2026 06:05:10 +0000 (23:05 -0700)
committerCarlos Maiolino <cem@kernel.org>
Tue, 14 Jul 2026 09:01:47 +0000 (11:01 +0200)
commitee248157da501f0c02688fb64e5359f2832b0b01
tree9bb8396406c4c3b718148af0094f2a61616cf50c
parentd766e4e5e85d829629c3ba503802fe1303d7b591
xfs: use rtrefcount btree cursor in xchk_xref_is_rt_cow_staging

LOLLM points out that we pass the wrong btree cursor here.  We want the
rtrefcount btree cursor, not the non-rt one.  This is fairly benign
since it only affects tracing data.

Cc: stable@vger.kernel.org # v6.14
Fixes: 91683bb3f264c0 ("xfs: cross-reference checks with the rt refcount btree")
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/rtrefcount.c