diff options
Diffstat (limited to 'fs/cifs/smb2pdu.c')
-rw-r--r-- | fs/cifs/smb2pdu.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/fs/cifs/smb2pdu.c b/fs/cifs/smb2pdu.c index 74a8381400b1..a1314f99b4cc 100644 --- a/fs/cifs/smb2pdu.c +++ b/fs/cifs/smb2pdu.c | |||
@@ -1760,3 +1760,14 @@ SMB2_set_eof(const unsigned int xid, struct cifs_tcon *tcon, u64 persistent_fid, | |||
1760 | return send_set_info(xid, tcon, persistent_fid, volatile_fid, pid, | 1760 | return send_set_info(xid, tcon, persistent_fid, volatile_fid, pid, |
1761 | FILE_END_OF_FILE_INFORMATION, 1, &data, &size); | 1761 | FILE_END_OF_FILE_INFORMATION, 1, &data, &size); |
1762 | } | 1762 | } |
1763 | |||
1764 | int | ||
1765 | SMB2_set_info(const unsigned int xid, struct cifs_tcon *tcon, | ||
1766 | u64 persistent_fid, u64 volatile_fid, FILE_BASIC_INFO *buf) | ||
1767 | { | ||
1768 | unsigned int size; | ||
1769 | size = sizeof(FILE_BASIC_INFO); | ||
1770 | return send_set_info(xid, tcon, persistent_fid, volatile_fid, | ||
1771 | current->tgid, FILE_BASIC_INFORMATION, 1, | ||
1772 | (void **)&buf, &size); | ||
1773 | } | ||