Re: [PATCH v11] ntfs: trim the sizes after a short write

From: Hyunchul Lee

Date: Thu Nov 26 2026 - 21:14:33 EST


> - if (ret < 0 && ret != -EIOCBQUEUED) {
> + /*
> + * Both sizes were moved to end before the copy, so a short write,
> + * like a failed one, must take back what it did not write.
> + */
> + if (ret < count && ret != -EIOCBQUEUED) {

The rollback code is quite long. Could you extract it into a seperate
fucntion?

--
Thanks,
Hyunchul