Re: [PATCH v2 2/2] f2fs: refresh pinned allocation boundary after resize

From: Wenjie Qi

Date: Thu Oct 15 2026 - 04:55:58 EST


Hi Daeho,

> Could you update the patch to adjust resizable_tail_secno accordingly?

I've sent v3 [1]. It now subtracts the removed sections from
resizable_tail_secno, clamping it to zero, before recalculating the pinned
allocation boundary. This keeps the boundary unchanged when shrinking
within the reservation and limits it to the new main area otherwise,
while retaining the zoned-device limit.

The old tail-based rejection checks are removed. The current tail value
is saved after freezing the filesystem and restored before rolling back
the geometry if the final checkpoint fails.

[1] https://lore.kernel.org/linux-f2fs-devel/cover.1792050467.git.qiwenjie@xxxxxxxxxx/T/#u

Best regards,
Wenjie