diff options
| author | Daejun Park <daejun7.park@samsung.com> | 2026-10-26 10:54:05 +0900 |
|---|---|---|
| committer | Carlos Maiolino <cem@kernel.org> | 2026-11-02 12:55:09 +0100 |
| commit | 595e67d7261673d03c96950ffbb2e545c00376ed (patch) | |
| tree | 0f76319947a17095e0f8d0c16ad9c5c28ebd86d7 /include/linux | |
| parent | 7e31d6dd3419e27ca74b2f9844d5a014f05e814d (diff) | |
xfs: don't skip free extents in later batches of a whole-AG FITRIM
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@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@samsung.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
