]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6142894dc5131aaced33213ec6d91a3b2d1a6d19
tree8de3ee1212fd3382affb6b72b7a2db05c7f03c3a
parent6e818c7f8de32c63462f5a745b7397a46ba3001b
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: d05a54c8f603 ("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