cifs: Fix prepare_write to negotiate wsize if needed
authorDavid Howells <dhowells@redhat.com>
Wed, 18 Jun 2025 15:39:47 +0000 (16:39 +0100)
committerSteve French <stfrench@microsoft.com>
Sat, 21 Jun 2025 16:03:24 +0000 (11:03 -0500)
commit2c4fd3d141465ef1afc8318c95e7b916d9a8c49c
tree23321f37c3ff20fab048f9f4cade574ae84c561b
parenta379a8a2a0032e12e7ef397197c9c2ad011588d6
cifs: Fix prepare_write to negotiate wsize if needed

Fix cifs_prepare_write() to negotiate the wsize if it is unset.

Reviewed-by: Shyam Prasad N <nspmangalore@gmail.com>
Reviewed-by: Bharath SM <bharathsm@microsoft.com>
Signed-off-by: David Howells <dhowells@redhat.com>
cc: Paulo Alcantara <pc@manguebit.org>
cc: netfs@lists.linux.dev
cc: linux-fsdevel@vger.kernel.org
cc: linux-cifs@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/file.c