> From: Daejun Park <[email protected]>
> 
> 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: [email protected] # v6.10
> Fixes: b0ffe661fab4 ("xfs: fix performance problems when fstrimming a subset 
> of a fragmented AG")
> Signed-off-by: Daejun Park <[email protected]>
> Reviewed-by: Christoph Hellwig <[email protected]>
> Signed-off-by: Carlos Maiolino <[email protected]>
> (cherry picked from commit 595e67d7261673d03c96950ffbb2e545c00376ed)
> 
> https://virtuozzo.atlassian.net/browse/VSTOR-153590
> 
> Feature: fix ms/xfs
> Signed-off-by: Denis V. Lunev <[email protected]>

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

-- 
Sashiko AI review ยท 
https://sashiko.vzint.dev/#/patchset/[email protected]?part=1


_______________________________________________
Devel mailing list
[email protected]
https://lists.openvz.org/mailman/listinfo/devel

Reply via email to