diff options
author | Ronnie Sahlberg <lsahlber@redhat.com> | 2018-09-03 13:33:45 +1000 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2018-10-23 21:16:04 -0500 |
commit | c2e0fe3f5aae1f70a1ab402778819d2cacbaefa6 (patch) | |
tree | e3ae8a1050e786a1847366b789940929a4dad1e0 /fs/cifs/smb2pdu.c | |
parent | ba8ca116854abe19893b8287d15c781e73e72405 (diff) | |
download | linux-stable-c2e0fe3f5aae1f70a1ab402778819d2cacbaefa6.tar.gz linux-stable-c2e0fe3f5aae1f70a1ab402778819d2cacbaefa6.tar.bz2 linux-stable-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.c | 16 |
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) { |