This patchset is the second part of big SMB2 merge (after smb2-mount). It adds SMB2 support for file and inode operation as well as rewrites existing part of their code to make it use ops server struct of protocol specific callbacks. The patchset is tested by cthon tests: basic and general parts. Pavel Shilovsky (45): CIFS: Make CAP_* checks protocol independent CIFS: Simpliify cifs_mkdir call CIFS: Separate protocol specific part from mkdir CIFS: Add SMB2 support for mkdir operation CIFS: Move rmdir code to ops struct CIFS: Add SMB2 support for rmdir CIFS: Protect i_nlink from being negative CIFS: Move unlink code to ops struct CIFS: Add SMB2 support for unlink CIFS: Replace netfid with cifs_fid struct in cifsFileInfo CIFS: Move open code to ops struct CIFS: Move close code to ops struct CIFS: Add open/close file support for SMB2 CIFS: Move guery file info code to ops struct CIFS: Add SMB2 support for query_file_info CIFS: Move create code use ops struct CIFS: Move reopen code to ops struct CIFS: Make flush code use ops struct CIFS: Add SMB2 support for flush CIFS: Move r/wsize negotiating to ops struct CIFS: Add SMB2 r/wsize negotiating CIFS: Move async read to ops struct CIFS: Add SMB2 support for cifs_iovec_read CIFS: Move async write to ops struct CIFS: Add SMB2 support for cifs_iovec_write CIFS: Move readpage code to ops struct CIFS: Add readpage support for SMB2 CIFS: Move writepage to ops struct CIFS: Add writepage support for SMB2 CIFS: Enable signing in SMB2 CIFS: Move rename to ops struct CIFS: Add SMB2 support for rename operation CIFS: Move hardlink to ops struct CIFS: Add SMB2 support for hardlink operation CIFS: Move set_file_size to ops struct CIFS: Add SMB2 support for set_file_size CIFS: Move set_file_info to ops struct CIFS: Add set_file_info support for SMB2 CIFS: Move readdir code to ops struct CIFS: Add readdir support for SMB2 CIFS: Process oplocks for SMB2 CIFS: Move oplock break to ops struct CIFS: Add oplock break support for SMB2 CIFS: Move statfs to ops struct CIFS: Add statfs support for SMB2 fs/cifs/Kconfig | 1 + fs/cifs/Makefile | 2 +- fs/cifs/cifsacl.c | 2 +- fs/cifs/cifsencrypt.c | 30 ++- fs/cifs/cifsfs.c | 31 +-- fs/cifs/cifsglob.h | 241 ++++++++++++- fs/cifs/cifsproto.h | 96 ++---- fs/cifs/cifssmb.c | 171 ++++----- fs/cifs/connect.c | 154 +------- fs/cifs/dir.c | 108 +++--- fs/cifs/file.c | 473 +++++++++++++----------- fs/cifs/inode.c | 652 ++++++++++++++++---------------- fs/cifs/ioctl.c | 13 +- fs/cifs/link.c | 80 +++-- fs/cifs/misc.c | 2 +- fs/cifs/netmisc.c | 3 +- fs/cifs/readdir.c | 179 +++++---- fs/cifs/smb1ops.c | 351 +++++++++++++++++- fs/cifs/smb2file.c | 106 ++++++ fs/cifs/smb2glob.h | 14 + fs/cifs/smb2inode.c | 137 +++++++- fs/cifs/smb2maperror.c | 3 +- fs/cifs/smb2misc.c | 86 ++++- fs/cifs/smb2ops.c | 267 +++++++++++++- fs/cifs/smb2pdu.c | 957 ++++++++++++++++++++++++++++++++++++++++++++++- fs/cifs/smb2pdu.h | 178 +++++++++ fs/cifs/smb2proto.h | 71 ++++- fs/cifs/smb2transport.c | 157 ++++++++- fs/cifs/transport.c | 24 +- 29 files changed, 3499 insertions(+), 1090 deletions(-) create mode 100644 fs/cifs/smb2file.c -- To unsubscribe from this list: send the line "unsubscribe linux-cifs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html