summaryrefslogtreecommitdiffstats
path: root/fs/nfs/callback.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2015-11-09 21:11:22 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2015-11-09 21:11:22 -0500
commite6604ecb70d4b1dbc0372c6518b51c25c4b135a1 (patch)
tree2d12c51b84c3ba8472e59ddbe37da034e2c5251f /fs/nfs/callback.h
parent9d74288ca79249af4b906215788b37d52263b58b (diff)
parent941c3ff3102ccce440034d59cf9e4e9cc10b720d (diff)
Merge tag 'nfs-for-4.4-1' of git://git.linux-nfs.org/projects/trondmy/linux-nfs
Pull NFS client updates from Trond Myklebust: "Highlights include: New features: - RDMA client backchannel from Chuck - Support for NFSv4.2 file CLONE using the btrfs ioctl Bugfixes + cleanups: - Move socket data receive out of the bottom halves and into a workqueue - Refactor NFSv4 error handling so synchronous and asynchronous RPC handles errors identically. - Fix a panic when blocks or object layouts reads return a bad data length - Fix nfsroot so it can handle a 1024 byte long path. - Fix bad usage of page offset in bl_read_pagelist - Various NFSv4 callback cleanups+fixes - Fix GETATTR bitmap verification - Support hexadecimal number for sunrpc debug sysctl files" * tag 'nfs-for-4.4-1' of git://git.linux-nfs.org/projects/trondmy/linux-nfs: (53 commits) Sunrpc: Supports hexadecimal number for sysctl files of sunrpc debug nfs: Fix GETATTR bitmap verification nfs: Remove unused xdr page offsets in getacl/setacl arguments fs/nfs: remove unnecessary new_valid_dev check SUNRPC: fix variable type NFS: Enable client side NFSv4.1 backchannel to use other transports pNFS/flexfiles: Add support for FF_FLAGS_NO_IO_THRU_MDS pNFS/flexfiles: When mirrored, retry failed reads by switching mirrors SUNRPC: Remove the TCP-only restriction in bc_svc_process() svcrdma: Add backward direction service for RPC/RDMA transport xprtrdma: Handle incoming backward direction RPC calls xprtrdma: Add support for sending backward direction RPC replies xprtrdma: Pre-allocate Work Requests for backchannel xprtrdma: Pre-allocate backward rpc_rqst and send/receive buffers SUNRPC: Abstract backchannel operations xprtrdma: Saving IRQs no longer needed for rb_lock xprtrdma: Remove reply tasklet xprtrdma: Use workqueue to process RPC/RDMA replies xprtrdma: Replace send and receive arrays xprtrdma: Refactor reply handler error handling ...
Diffstat (limited to 'fs/nfs/callback.h')
-rw-r--r--fs/nfs/callback.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/fs/nfs/callback.h b/fs/nfs/callback.h
index 84326e9fb47a..ff8195bd75ea 100644
--- a/fs/nfs/callback.h
+++ b/fs/nfs/callback.h
@@ -61,7 +61,6 @@ struct cb_compound_hdr_res {
61}; 61};
62 62
63struct cb_getattrargs { 63struct cb_getattrargs {
64 struct sockaddr *addr;
65 struct nfs_fh fh; 64 struct nfs_fh fh;
66 uint32_t bitmap[2]; 65 uint32_t bitmap[2];
67}; 66};
@@ -76,7 +75,6 @@ struct cb_getattrres {
76}; 75};
77 76
78struct cb_recallargs { 77struct cb_recallargs {
79 struct sockaddr *addr;
80 struct nfs_fh fh; 78 struct nfs_fh fh;
81 nfs4_stateid stateid; 79 nfs4_stateid stateid;
82 uint32_t truncate; 80 uint32_t truncate;
@@ -119,9 +117,6 @@ extern __be32 nfs4_callback_sequence(struct cb_sequenceargs *args,
119 struct cb_sequenceres *res, 117 struct cb_sequenceres *res,
120 struct cb_process_state *cps); 118 struct cb_process_state *cps);
121 119
122extern int nfs41_validate_delegation_stateid(struct nfs_delegation *delegation,
123 const nfs4_stateid *stateid);
124
125#define RCA4_TYPE_MASK_RDATA_DLG 0 120#define RCA4_TYPE_MASK_RDATA_DLG 0
126#define RCA4_TYPE_MASK_WDATA_DLG 1 121#define RCA4_TYPE_MASK_WDATA_DLG 1
127#define RCA4_TYPE_MASK_DIR_DLG 2 122#define RCA4_TYPE_MASK_DIR_DLG 2
@@ -134,7 +129,6 @@ extern int nfs41_validate_delegation_stateid(struct nfs_delegation *delegation,
134#define RCA4_TYPE_MASK_ALL 0xf31f 129#define RCA4_TYPE_MASK_ALL 0xf31f
135 130
136struct cb_recallanyargs { 131struct cb_recallanyargs {
137 struct sockaddr *craa_addr;
138 uint32_t craa_objs_to_keep; 132 uint32_t craa_objs_to_keep;
139 uint32_t craa_type_mask; 133 uint32_t craa_type_mask;
140}; 134};
@@ -144,7 +138,6 @@ extern __be32 nfs4_callback_recallany(struct cb_recallanyargs *args,
144 struct cb_process_state *cps); 138 struct cb_process_state *cps);
145 139
146struct cb_recallslotargs { 140struct cb_recallslotargs {
147 struct sockaddr *crsa_addr;
148 uint32_t crsa_target_highest_slotid; 141 uint32_t crsa_target_highest_slotid;
149}; 142};
150extern __be32 nfs4_callback_recallslot(struct cb_recallslotargs *args, 143extern __be32 nfs4_callback_recallslot(struct cb_recallslotargs *args,
@@ -152,7 +145,6 @@ extern __be32 nfs4_callback_recallslot(struct cb_recallslotargs *args,
152 struct cb_process_state *cps); 145 struct cb_process_state *cps);
153 146
154struct cb_layoutrecallargs { 147struct cb_layoutrecallargs {
155 struct sockaddr *cbl_addr;
156 uint32_t cbl_recall_type; 148 uint32_t cbl_recall_type;
157 uint32_t cbl_layout_type; 149 uint32_t cbl_layout_type;
158 uint32_t cbl_layoutchanged; 150 uint32_t cbl_layoutchanged;
@@ -196,9 +188,6 @@ extern __be32 nfs4_callback_recall(struct cb_recallargs *args, void *dummy,
196#if IS_ENABLED(CONFIG_NFS_V4) 188#if IS_ENABLED(CONFIG_NFS_V4)
197extern int nfs_callback_up(u32 minorversion, struct rpc_xprt *xprt); 189extern int nfs_callback_up(u32 minorversion, struct rpc_xprt *xprt);
198extern void nfs_callback_down(int minorversion, struct net *net); 190extern void nfs_callback_down(int minorversion, struct net *net);
199extern int nfs4_validate_delegation_stateid(struct nfs_delegation *delegation,
200 const nfs4_stateid *stateid);
201extern int nfs4_set_callback_sessionid(struct nfs_client *clp);
202#endif /* CONFIG_NFS_V4 */ 191#endif /* CONFIG_NFS_V4 */
203/* 192/*
204 * nfs41: Callbacks are expected to not cause substantial latency, 193 * nfs41: Callbacks are expected to not cause substantial latency,
@@ -209,6 +198,5 @@ extern int nfs4_set_callback_sessionid(struct nfs_client *clp);
209#define NFS41_BC_MAX_CALLBACKS 1 198#define NFS41_BC_MAX_CALLBACKS 1
210 199
211extern unsigned int nfs_callback_set_tcpport; 200extern unsigned int nfs_callback_set_tcpport;
212extern unsigned short nfs_callback_tcpport;
213 201
214#endif /* __LINUX_FS_NFS_CALLBACK_H */ 202#endif /* __LINUX_FS_NFS_CALLBACK_H */