]> git.ipfire.org Git - thirdparty/linux.git/commit
xfs: only check mergeability of bnobt records
authorDarrick J. Wong <djwong@kernel.org>
Mon, 27 Jul 2026 05:22:59 +0000 (22:22 -0700)
committerCarlos Maiolino <cem@kernel.org>
Mon, 3 Aug 2026 08:17:34 +0000 (10:17 +0200)
commit97efed1091a50e4dbf31307015138b43a972d2e4
tree6b05f3e0a2a4a602cdbfe48f0526b6b3257d6b1d
parentfb082235c67551d526704e07a4efb82ac3a9ba48
xfs: only check mergeability of bnobt records

In the cntbt (free space by block count) btree, records are not supposed
to be in startblock order.  Hence the mergeability check is pointless.
Remove it, since it does nothing, as LOLLM points out.

Cc: stable@vger.kernel.org # v6.4
Fixes: d5784ae82778d9 ("xfs: flag free space btree records that could be merged")
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/alloc.c