cifs: only write 64kb at a time when fallocating a small region of a file
stable inclusion from stable-5.10.54 commit c26372b8a8c301d56204cddb9aedfa2c67adac17 bugzilla: 175586 https://gitee.com/openeuler/kernel/issues/I4DVDU Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=c26372b8a8c301d56204cddb9aedfa2c67adac17 -------------------------------- [ Upstream commit 2485bd75 ] We only allow sending single credit writes through the SMB2_write() synchronous api so split this into smaller chunks. Fixes: 966a3cb7 ("cifs: improve fallocate emulation") Signed-off-by: NRonnie Sahlberg <lsahlber@redhat.com> Reported-by: NNamjae Jeon <namjae.jeon@samsung.com> Signed-off-by: NSteve French <stfrench@microsoft.com> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: NChen Jun <chenjun102@huawei.com> Acked-by: NWeilong Chen <chenweilong@huawei.com> Signed-off-by: NChen Jun <chenjun102@huawei.com> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Showing
想要评论请 注册 或 登录