[Devel] [PATCH hci-8.1 v2 2/5] fs/ext4: ensure ext4 transaction credits while swapext
Konstantin Khorenko
khorenko at virtuozzo.com
Wed Nov 18 13:55:19 MSK 2026
Applying with these fixes on my side:
- "Credits for the whole request" -> "Credits for each donor extent":
swap_one_extent() estimates them per donor extent
- after the "Note" paragraph: "Each transaction holds whole passes,
so after a crash the swapped part is a contiguous prefix of the
range as well. The restart continues from the end of the swapped
part, which relies on the previous patch."
On Wed, 18 Nov 2026 00:59:08 +0800, Alexey Kuznetsov wrote:
> Note, swapext does not require to swap the whole requested
> area. It is allowed to swap any partial contiguous area,
> provided moved_len reports swapped blocks and blocks
> beyond moved_len are not affected.
This answers item 5 of my v1 reply for an error return. The added
sentence covers the crash between two transactions, which I asked
about, and the dependency on patch 1 from item 4.
Thanks.
--
Konstantin Khorenko,
Virtuozzo Linux Kernel Team
More information about the Devel
mailing list