Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

smb: server: only use public smbdirect functions

Also remove a lot of unused includes...

Cc: Namjae Jeon <linkinjeon@kernel.org>
Cc: Steve French <smfrench@gmail.com>
Cc: Tom Talpey <tom@talpey.com>
Cc: linux-cifs@vger.kernel.org
Cc: samba-technical@lists.samba.org
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>

authored by

Stefan Metzmacher and committed by
Steve French
1b2d94a3 ff7673f6

+11 -17
-1
fs/smb/server/smb2pdu.c
··· 24 24 #include "asn1.h" 25 25 #include "connection.h" 26 26 #include "transport_ipc.h" 27 - #include "../common/smbdirect/smbdirect.h" 28 27 #include "transport_rdma.h" 29 28 #include "vfs.h" 30 29 #include "vfs_cache.h"
+9 -16
fs/smb/server/transport_rdma.c
··· 13 13 14 14 #include <linux/kthread.h> 15 15 #include <linux/list.h> 16 - #include <linux/mempool.h> 17 - #include <linux/highmem.h> 18 - #include <linux/scatterlist.h> 19 16 #include <linux/string_choices.h> 20 - #include <rdma/ib_verbs.h> 21 - #include <rdma/rdma_cm.h> 22 - #include <rdma/rw.h> 23 17 24 18 #include "glob.h" 25 19 #include "connection.h" 26 20 #include "smb_common.h" 27 21 #include "../common/smb2status.h" 28 - #include "../common/smbdirect/smbdirect.h" 29 - #include "../common/smbdirect/smbdirect_pdu.h" 30 - #include "../common/smbdirect/smbdirect_socket.h" 31 22 #include "transport_rdma.h" 23 + #include "../common/smbdirect/smbdirect_public.h" 32 24 33 - /* 34 - * This is a temporary solution until all code 35 - * is moved to smbdirect_all_c_files.c and we 36 - * have an smbdirect.ko that exports the required 37 - * functions. 38 - */ 39 - #include "../common/smbdirect/smbdirect_all_c_files.c" 40 25 41 26 #define SMB_DIRECT_PORT_IWARP 5445 42 27 #define SMB_DIRECT_PORT_INFINIBAND 445 ··· 694 709 .rdma_write = smb_direct_rdma_write, 695 710 .free_transport = smb_direct_free_transport, 696 711 }; 712 + 713 + /* 714 + * This is a temporary solution until all code 715 + * is moved to smbdirect_all_c_files.c and we 716 + * have an smbdirect.ko that exports the required 717 + * functions. 718 + */ 719 + #include "../common/smbdirect/smbdirect_all_c_files.c"
+2
fs/smb/server/transport_rdma.h
··· 27 27 static inline unsigned int get_smbd_max_read_write_size(struct ksmbd_transport *kt) { return 0; } 28 28 #endif 29 29 30 + #include "../common/smbdirect/smbdirect.h" 31 + 30 32 #endif /* __KSMBD_TRANSPORT_RDMA_H__ */