summaryrefslogtreecommitdiffstats
path: root/fs/cifs/smb2pdu.c
diff options
context:
space:
mode:
authorRonnie Sahlberg2018-09-03 05:33:45 +0200
committerSteve French2018-10-24 04:16:04 +0200
commitc2e0fe3f5aae1f70a1ab402778819d2cacbaefa6 (patch)
treee3ae8a1050e786a1847366b789940929a4dad1e0 /fs/cifs/smb2pdu.c
parentcifs: create helpers for SMB2_set_info_init/free() (diff)
downloadkernel-qcow2-linux-c2e0fe3f5aae1f70a1ab402778819d2cacbaefa6.tar.gz
kernel-qcow2-linux-c2e0fe3f5aae1f70a1ab402778819d2cacbaefa6.tar.xz
kernel-qcow2-linux-c2e0fe3f5aae1f70a1ab402778819d2cacbaefa6.zip
cifs: make rmdir() use compounding
This and previous patches drop the number of roundtrips we need for rmdir() from 6 to 2. Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/smb2pdu.c')
-rw-r--r--fs/cifs/smb2pdu.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/fs/cifs/smb2pdu.c b/fs/cifs/smb2pdu.c
index 6c5249302574..8d2efca9814f 100644
--- a/fs/cifs/smb2pdu.c
+++ b/fs/cifs/smb2pdu.c
@@ -3892,22 +3892,6 @@ SMB2_rename(const unsigned int xid, struct cifs_tcon *tcon,
}
int
-SMB2_rmdir(const unsigned int xid, struct cifs_tcon *tcon,
- u64 persistent_fid, u64 volatile_fid)
-{
- __u8 delete_pending = 1;
- void *data;
- unsigned int size;
-
- data = &delete_pending;
- size = 1; /* sizeof __u8 */
-
- return send_set_info(xid, tcon, persistent_fid, volatile_fid,
- current->tgid, FILE_DISPOSITION_INFORMATION, SMB2_O_INFO_FILE,
- 0, 1, &data, &size);
-}
-
-int
SMB2_set_hardlink(const unsigned int xid, struct cifs_tcon *tcon,
u64 persistent_fid, u64 volatile_fid, __le16 *target_file)
{