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:-/