Re: [RFC PATCH 00/31] netfs: [WIP] Allow the use of MSG_SPLICE_PAGES and use netmem allocator

From: Enzo Matsumiya
Date: Fri Aug 08 2025 - 15:59:15 EST


On 08/08, David Howells wrote:
Hi Enzo,

> (d) Compression should be a matter of vmap()'ing these pages to form
> the source buffer, allocating a second buffer of pages to form a
> dest buffer, also in a bvecq, vmapping that and then doing the
> compression. The first buffer can then just be replaced by the
> second.

OTOH, compression can't be in-place because SMB2 says that if
compression fails, the original uncompressed request must be sent (i.e.
src must be left untouched until smb_compress() finishes).

I've got a change which should achieve this, but it seems I can't test it.
None of ksmbd, samba and azure seem to support it:-/

Yes, Windows 11 or Windows Server 2022+ only.

Compression for ksmbd and samba have been on my TODO list for too long,
I should get back to it :/

Anyway, if you want me to test, just send me the patches.
I have your linux-fs remote as well, if that's easier.


Cheers,

Enzo