[Devel] [PATCH hci-8.1 v3 1/5] ms/xfs: don't skip free extents in later batches of a whole-AG FITRIM

no-reply at sashiko.virtuozzo.com no-reply at sashiko.virtuozzo.com
Wed Nov 11 14:35:26 MSK 2026


> From: Daejun Park <daejun7.park at samsung.com>
> 
> A whole-device FITRIM walks every AG but the last by length, in
> batches. xfs_trim_gather_extents() saves the record to restart from in
> tcur->start. But tcur->start is also the start of the range to trim.
> Later batches therefore never discard the free extents below that
> block.
> 
> Save the restart record in a new restart_bno field.
> 
> Cc: stable at vger.kernel.org # v6.10
> Fixes: b0ffe661fab4 ("xfs: fix performance problems when fstrimming a subset of a fragmented AG")
> Signed-off-by: Daejun Park <daejun7.park at samsung.com>
> Reviewed-by: Christoph Hellwig <hch at lst.de>
> Signed-off-by: Carlos Maiolino <cem at kernel.org>
> (cherry picked from commit 595e67d7261673d03c96950ffbb2e545c00376ed)
> 
> https://virtuozzo.atlassian.net/browse/VSTOR-153590
> 
> Feature: fix ms/xfs
> Signed-off-by: Denis V. Lunev <den at openvz.org>

Sashiko has reviewed this patch and found no issues. It looks great!

-- 
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261111113135.4023555-1-den@openvz.org?part=1




More information about the Devel mailing list