]> git.ipfire.org Git - thirdparty/linux.git/commit
cifs: change SMB2_OP_SET_EOF to use compounding
authorRonnie Sahlberg <lsahlber@redhat.com>
Mon, 3 Sep 2018 03:33:46 +0000 (13:33 +1000)
committerSteve French <stfrench@microsoft.com>
Wed, 24 Oct 2018 02:16:04 +0000 (21:16 -0500)
commitf7bfe04bf0dbc422cbb3d5cffe1601518116dad6
tree16f238fdd5bfebbf98ca6615d28594ef5567de4a
parentc2e0fe3f5aae1f70a1ab402778819d2cacbaefa6
cifs: change SMB2_OP_SET_EOF to use compounding

This changes SMB2_OP_SET_EOF to use compounding in some situations.
This is part of the path based API to truncate a file.
Most of the time this will however not be invoked for SMB2 since
cifs_set_file_size() will as far as I can tell almost always just
open the file synchronously and switch to the handle based truncate
code path, thus bypassing the compounding we add here.

Rewriting cifs_set_file_size() and make that whole pile of code more
compounding friendly, and also easier to read and understand, is a
different project though and not for this patch.

Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/smb2inode.c