Re: [PATCH] fs/ntfs3: end trim runs at fully allocated bitmap windows

From: Hungyu Lin

Date: Fri Dec 04 2026 - 02:12:55 EST


On Mon, Nov 2, 2026 at 10:05 PM Hungyu Lin <dennylin0707@xxxxxxxxx> wrote:
> ntfs_trim_fs() keeps a free run pending across bitmap windows. When
> the cached free-bit count of a window is zero, the loop skips it without
> ending the pending run. Free clusters at the start of a later window
> are then added to the old length despite the allocated gap.
>
> For example, two eight-cluster holes separated by fully allocated bitmap
> windows can be submitted as one sixteen-cluster discard starting at the
> first hole. This discards allocated clusters while leaving the actual
> second hole untrimmed.

Gentle ping. Could this be picked up?

Thanks,
Hungyu