summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaejun Park <daejun7.park@samsung.com>2026-10-26 10:54:06 +0900
committerCarlos Maiolino <cem@kernel.org>2026-11-02 12:55:09 +0100
commit5745f4f10a1a16aa5bb020acc38afa33f2d5ff99 (patch)
treec0996f0ec73fc64bc9ba6709e82382326e509243 /include
parent595e67d7261673d03c96950ffbb2e545c00376ed (diff)
xfs: don't skip free extents of the longest length in a whole-AG FITRIM
Since commit a66d636385d6 ("xfs: fix fstrim offset calculations"), the by-length walk of an AG in FITRIM starts with xfs_alloc_lookup_ge(cur, 0, pagf_longest) and walks down. The lookup lands on the longest free extent with the lowest block number. The other free extents of that length sort after it and are never discarded. Start every by-length batch with xfs_alloc_lookup_le() at restart_bno. Suggested-by: Dave Chinner <dgc@kernel.org> Link: https://lore.kernel.org/r/ZgiJWxVcVwag0fIP@dread.disaster.area Cc: stable@vger.kernel.org Fixes: a66d636385d6 ("xfs: fix fstrim offset calculations") 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')
0 files changed, 0 insertions, 0 deletions