Re: [PATCH] shmem: do not extend i_size when no data was copied

From: Hungyu Lin

Date: Tue Nov 03 2026 - 14:14:49 EST


> The trouble is that practically any filesystem is going to have these
> issues with 0-length writes starting beyond i_size. So if we can fix it in
> generic code, it would be certainly easier in the grand scheme of things.

Understood. I'll try Kiryl's approach in generic_perform_write() and test
it across the affected filesystems before sending a patch.

Thanks,
Hungyu