summaryrefslogtreecommitdiffstats
path: root/fs/cifs/smb2ops.c
diff options
context:
space:
mode:
authorSteve French <sfrench@localhost.localdomain>2014-07-19 21:44:58 -0500
committerSteve French <smfrench@gmail.com>2014-08-05 12:53:37 -0500
commitf29ebb47d5bb59ef246966b047356c03629a9705 (patch)
tree1f76c55754b4c69384eb0c101644fbb548f117fd /fs/cifs/smb2ops.c
parent59b04c5df75bd715002bb535930ae1982a739269 (diff)
downloadop-kernel-dev-f29ebb47d5bb59ef246966b047356c03629a9705.zip
op-kernel-dev-f29ebb47d5bb59ef246966b047356c03629a9705.tar.gz
Add worker function to set allocation size
Adds setinfo worker function for SMB2/SMB3 support of SET_ALLOCATION_INFORMATION Signed-off-by: Steve French <smfrench@gmail.com> Reviewed-by: Pavel Shilovsky <pshilovsky@samba.org>
Diffstat (limited to 'fs/cifs/smb2ops.c')
-rw-r--r--fs/cifs/smb2ops.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/cifs/smb2ops.c b/fs/cifs/smb2ops.c
index d0210a8..77f8aeb 100644
--- a/fs/cifs/smb2ops.c
+++ b/fs/cifs/smb2ops.c
@@ -19,6 +19,7 @@
#include <linux/pagemap.h>
#include <linux/vfs.h>
+#include <linux/falloc.h>
#include "cifsglob.h"
#include "smb2pdu.h"
#include "smb2proto.h"
@@ -736,7 +737,7 @@ smb2_set_file_size(const unsigned int xid, struct cifs_tcon *tcon,
{
__le64 eof = cpu_to_le64(size);
return SMB2_set_eof(xid, tcon, cfile->fid.persistent_fid,
- cfile->fid.volatile_fid, cfile->pid, &eof);
+ cfile->fid.volatile_fid, cfile->pid, &eof, false);
}
static int
OpenPOWER on IntegriCloud