]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
repair: fix the call to search_rt_dup_extent in scan_bmapbt
authorChristoph Hellwig <hch@lst.de>
Thu, 9 Nov 2023 16:02:33 +0000 (17:02 +0100)
committerCarlos Maiolino <cem@kernel.org>
Tue, 21 Nov 2023 13:09:36 +0000 (14:09 +0100)
commit3bd45ce1ceb74cfae826fabeea991adc7c3d8ede
tree16a16b3bd211f8237a63e47c29f6049a8209c13c
parent9448c82ef57cfba5505e1f2312528fd6224cf291
repair: fix the call to search_rt_dup_extent in scan_bmapbt

search_rt_dup_extent expects an RT extent number and not a fsbno.
Convert the units before the call.  Without this we are unlikely
to ever found a legit duplicate extent on the RT subvolume because
the search will always be off the end.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
repair/scan.c