diff options
Diffstat (limited to 'include/linux/sunrpc')
-rw-r--r-- | include/linux/sunrpc/Kbuild | 1 | ||||
-rw-r--r-- | include/linux/sunrpc/clnt.h | 2 | ||||
-rw-r--r-- | include/linux/sunrpc/debug.h | 39 | ||||
-rw-r--r-- | include/linux/sunrpc/sched.h | 1 | ||||
-rw-r--r-- | include/linux/sunrpc/svc_xprt.h | 5 | ||||
-rw-r--r-- | include/linux/sunrpc/svcsock.h | 3 | ||||
-rw-r--r-- | include/linux/sunrpc/xprt.h | 3 |
7 files changed, 6 insertions, 48 deletions
diff --git a/include/linux/sunrpc/Kbuild b/include/linux/sunrpc/Kbuild deleted file mode 100644 index 98df21164a86..000000000000 --- a/include/linux/sunrpc/Kbuild +++ /dev/null | |||
@@ -1 +0,0 @@ | |||
1 | header-y += debug.h | ||
diff --git a/include/linux/sunrpc/clnt.h b/include/linux/sunrpc/clnt.h index 523547ecfee2..34206b84d8da 100644 --- a/include/linux/sunrpc/clnt.h +++ b/include/linux/sunrpc/clnt.h | |||
@@ -130,6 +130,8 @@ struct rpc_clnt *rpc_bind_new_program(struct rpc_clnt *, | |||
130 | const struct rpc_program *, u32); | 130 | const struct rpc_program *, u32); |
131 | void rpc_task_reset_client(struct rpc_task *task, struct rpc_clnt *clnt); | 131 | void rpc_task_reset_client(struct rpc_task *task, struct rpc_clnt *clnt); |
132 | struct rpc_clnt *rpc_clone_client(struct rpc_clnt *); | 132 | struct rpc_clnt *rpc_clone_client(struct rpc_clnt *); |
133 | struct rpc_clnt *rpc_clone_client_set_auth(struct rpc_clnt *, | ||
134 | rpc_authflavor_t); | ||
133 | void rpc_shutdown_client(struct rpc_clnt *); | 135 | void rpc_shutdown_client(struct rpc_clnt *); |
134 | void rpc_release_client(struct rpc_clnt *); | 136 | void rpc_release_client(struct rpc_clnt *); |
135 | void rpc_task_release_client(struct rpc_task *); | 137 | void rpc_task_release_client(struct rpc_task *); |
diff --git a/include/linux/sunrpc/debug.h b/include/linux/sunrpc/debug.h index a76cc20d98ce..9385bd74c860 100644 --- a/include/linux/sunrpc/debug.h +++ b/include/linux/sunrpc/debug.h | |||
@@ -5,28 +5,11 @@ | |||
5 | * | 5 | * |
6 | * Copyright (C) 1996, Olaf Kirch <okir@monad.swb.de> | 6 | * Copyright (C) 1996, Olaf Kirch <okir@monad.swb.de> |
7 | */ | 7 | */ |
8 | |||
9 | #ifndef _LINUX_SUNRPC_DEBUG_H_ | 8 | #ifndef _LINUX_SUNRPC_DEBUG_H_ |
10 | #define _LINUX_SUNRPC_DEBUG_H_ | 9 | #define _LINUX_SUNRPC_DEBUG_H_ |
11 | 10 | ||
12 | /* | 11 | #include <uapi/linux/sunrpc/debug.h> |
13 | * RPC debug facilities | ||
14 | */ | ||
15 | #define RPCDBG_XPRT 0x0001 | ||
16 | #define RPCDBG_CALL 0x0002 | ||
17 | #define RPCDBG_DEBUG 0x0004 | ||
18 | #define RPCDBG_NFS 0x0008 | ||
19 | #define RPCDBG_AUTH 0x0010 | ||
20 | #define RPCDBG_BIND 0x0020 | ||
21 | #define RPCDBG_SCHED 0x0040 | ||
22 | #define RPCDBG_TRANS 0x0080 | ||
23 | #define RPCDBG_SVCXPRT 0x0100 | ||
24 | #define RPCDBG_SVCDSP 0x0200 | ||
25 | #define RPCDBG_MISC 0x0400 | ||
26 | #define RPCDBG_CACHE 0x0800 | ||
27 | #define RPCDBG_ALL 0x7fff | ||
28 | 12 | ||
29 | #ifdef __KERNEL__ | ||
30 | 13 | ||
31 | /* | 14 | /* |
32 | * Enable RPC debugging/profiling. | 15 | * Enable RPC debugging/profiling. |
@@ -87,24 +70,4 @@ void rpc_register_sysctl(void); | |||
87 | void rpc_unregister_sysctl(void); | 70 | void rpc_unregister_sysctl(void); |
88 | #endif | 71 | #endif |
89 | 72 | ||
90 | #endif /* __KERNEL__ */ | ||
91 | |||
92 | /* | ||
93 | * Declarations for the sysctl debug interface, which allows to read or | ||
94 | * change the debug flags for rpc, nfs, nfsd, and lockd. Since the sunrpc | ||
95 | * module currently registers its sysctl table dynamically, the sysctl path | ||
96 | * for module FOO is <CTL_SUNRPC, CTL_FOODEBUG>. | ||
97 | */ | ||
98 | |||
99 | enum { | ||
100 | CTL_RPCDEBUG = 1, | ||
101 | CTL_NFSDEBUG, | ||
102 | CTL_NFSDDEBUG, | ||
103 | CTL_NLMDEBUG, | ||
104 | CTL_SLOTTABLE_UDP, | ||
105 | CTL_SLOTTABLE_TCP, | ||
106 | CTL_MIN_RESVPORT, | ||
107 | CTL_MAX_RESVPORT, | ||
108 | }; | ||
109 | |||
110 | #endif /* _LINUX_SUNRPC_DEBUG_H_ */ | 73 | #endif /* _LINUX_SUNRPC_DEBUG_H_ */ |
diff --git a/include/linux/sunrpc/sched.h b/include/linux/sunrpc/sched.h index dc0c3cc3ada3..b64f8eb0b973 100644 --- a/include/linux/sunrpc/sched.h +++ b/include/linux/sunrpc/sched.h | |||
@@ -192,7 +192,6 @@ struct rpc_wait_queue { | |||
192 | pid_t owner; /* process id of last task serviced */ | 192 | pid_t owner; /* process id of last task serviced */ |
193 | unsigned char maxpriority; /* maximum priority (0 if queue is not a priority queue) */ | 193 | unsigned char maxpriority; /* maximum priority (0 if queue is not a priority queue) */ |
194 | unsigned char priority; /* current priority */ | 194 | unsigned char priority; /* current priority */ |
195 | unsigned char count; /* # task groups remaining serviced so far */ | ||
196 | unsigned char nr; /* # tasks remaining for cookie */ | 195 | unsigned char nr; /* # tasks remaining for cookie */ |
197 | unsigned short qlen; /* total # tasks waiting in queue */ | 196 | unsigned short qlen; /* total # tasks waiting in queue */ |
198 | struct rpc_timer timer_list; | 197 | struct rpc_timer timer_list; |
diff --git a/include/linux/sunrpc/svc_xprt.h b/include/linux/sunrpc/svc_xprt.h index b3f64b12f141..b05963f09ebf 100644 --- a/include/linux/sunrpc/svc_xprt.h +++ b/include/linux/sunrpc/svc_xprt.h | |||
@@ -114,7 +114,6 @@ void svc_xprt_init(struct net *, struct svc_xprt_class *, struct svc_xprt *, | |||
114 | int svc_create_xprt(struct svc_serv *, const char *, struct net *, | 114 | int svc_create_xprt(struct svc_serv *, const char *, struct net *, |
115 | const int, const unsigned short, int); | 115 | const int, const unsigned short, int); |
116 | void svc_xprt_enqueue(struct svc_xprt *xprt); | 116 | void svc_xprt_enqueue(struct svc_xprt *xprt); |
117 | void svc_xprt_received(struct svc_xprt *); | ||
118 | void svc_xprt_put(struct svc_xprt *xprt); | 117 | void svc_xprt_put(struct svc_xprt *xprt); |
119 | void svc_xprt_copy_addrs(struct svc_rqst *rqstp, struct svc_xprt *xprt); | 118 | void svc_xprt_copy_addrs(struct svc_rqst *rqstp, struct svc_xprt *xprt); |
120 | void svc_close_xprt(struct svc_xprt *xprt); | 119 | void svc_close_xprt(struct svc_xprt *xprt); |
@@ -124,6 +123,7 @@ struct svc_xprt *svc_find_xprt(struct svc_serv *serv, const char *xcl_name, | |||
124 | struct net *net, const sa_family_t af, | 123 | struct net *net, const sa_family_t af, |
125 | const unsigned short port); | 124 | const unsigned short port); |
126 | int svc_xprt_names(struct svc_serv *serv, char *buf, const int buflen); | 125 | int svc_xprt_names(struct svc_serv *serv, char *buf, const int buflen); |
126 | void svc_add_new_perm_xprt(struct svc_serv *serv, struct svc_xprt *xprt); | ||
127 | 127 | ||
128 | static inline void svc_xprt_get(struct svc_xprt *xprt) | 128 | static inline void svc_xprt_get(struct svc_xprt *xprt) |
129 | { | 129 | { |
@@ -166,8 +166,7 @@ static inline size_t svc_addr_len(const struct sockaddr *sa) | |||
166 | case AF_INET6: | 166 | case AF_INET6: |
167 | return sizeof(struct sockaddr_in6); | 167 | return sizeof(struct sockaddr_in6); |
168 | } | 168 | } |
169 | 169 | BUG(); | |
170 | return 0; | ||
171 | } | 170 | } |
172 | 171 | ||
173 | static inline unsigned short svc_xprt_local_port(const struct svc_xprt *xprt) | 172 | static inline unsigned short svc_xprt_local_port(const struct svc_xprt *xprt) |
diff --git a/include/linux/sunrpc/svcsock.h b/include/linux/sunrpc/svcsock.h index cb4ac69e1f33..92ad02f0dcc0 100644 --- a/include/linux/sunrpc/svcsock.h +++ b/include/linux/sunrpc/svcsock.h | |||
@@ -39,9 +39,6 @@ int svc_recv(struct svc_rqst *, long); | |||
39 | int svc_send(struct svc_rqst *); | 39 | int svc_send(struct svc_rqst *); |
40 | void svc_drop(struct svc_rqst *); | 40 | void svc_drop(struct svc_rqst *); |
41 | void svc_sock_update_bufs(struct svc_serv *serv); | 41 | void svc_sock_update_bufs(struct svc_serv *serv); |
42 | int svc_sock_names(struct svc_serv *serv, char *buf, | ||
43 | const size_t buflen, | ||
44 | const char *toclose); | ||
45 | int svc_addsock(struct svc_serv *serv, const int fd, | 42 | int svc_addsock(struct svc_serv *serv, const int fd, |
46 | char *name_return, const size_t len); | 43 | char *name_return, const size_t len); |
47 | void svc_init_xprt_sock(void); | 44 | void svc_init_xprt_sock(void); |
diff --git a/include/linux/sunrpc/xprt.h b/include/linux/sunrpc/xprt.h index bf8c49ff7530..951cb9b7d02b 100644 --- a/include/linux/sunrpc/xprt.h +++ b/include/linux/sunrpc/xprt.h | |||
@@ -173,8 +173,7 @@ struct rpc_xprt { | |||
173 | unsigned int min_reqs; /* min number of slots */ | 173 | unsigned int min_reqs; /* min number of slots */ |
174 | atomic_t num_reqs; /* total slots */ | 174 | atomic_t num_reqs; /* total slots */ |
175 | unsigned long state; /* transport state */ | 175 | unsigned long state; /* transport state */ |
176 | unsigned char shutdown : 1, /* being shut down */ | 176 | unsigned char resvport : 1; /* use a reserved port */ |
177 | resvport : 1; /* use a reserved port */ | ||
178 | unsigned int swapper; /* we're swapping over this | 177 | unsigned int swapper; /* we're swapping over this |
179 | transport */ | 178 | transport */ |
180 | unsigned int bind_index; /* bind function index */ | 179 | unsigned int bind_index; /* bind function index */ |