cifs: only write 64kb at a time when fallocating a small region of a file
authorRonnie Sahlberg <lsahlber@redhat.com>
Thu, 22 Jul 2021 04:53:32 +0000 (14:53 +1000)
committerSteve French <stfrench@microsoft.com>
Thu, 22 Jul 2021 16:40:19 +0000 (11:40 -0500)
commit2485bd7557a7edb4520b4072af464f0a08c8efe0
tree8de3ee1212fd3382affb6b72b7a2db05c7f03c3a
parent2734d6c1b1a089fb593ef6a23d4b70903526fe0c
cifs: only write 64kb at a time when fallocating a small region of a file

We only allow sending single credit writes through the SMB2_write() synchronous
api so split this into smaller chunks.

Fixes: 966a3cb7c7db ("cifs: improve fallocate emulation")
Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Reported-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/smb2ops.c