diff options
Diffstat (limited to 'include/linux/sunrpc/xprt.h')
-rw-r--r-- | include/linux/sunrpc/xprt.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/sunrpc/xprt.h b/include/linux/sunrpc/xprt.h index beae030e80b5..55c6c37e249e 100644 --- a/include/linux/sunrpc/xprt.h +++ b/include/linux/sunrpc/xprt.h | |||
@@ -215,6 +215,18 @@ struct rpc_xprt { | |||
215 | /* buffer in use */ | 215 | /* buffer in use */ |
216 | #endif /* CONFIG_NFS_V4_1 */ | 216 | #endif /* CONFIG_NFS_V4_1 */ |
217 | 217 | ||
218 | #if defined(CONFIG_NFS_V4_1) | ||
219 | static inline int bc_prealloc(struct rpc_rqst *req) | ||
220 | { | ||
221 | return test_bit(RPC_BC_PA_IN_USE, &req->rq_bc_pa_state); | ||
222 | } | ||
223 | #else | ||
224 | static inline int bc_prealloc(struct rpc_rqst *req) | ||
225 | { | ||
226 | return 0; | ||
227 | } | ||
228 | #endif /* CONFIG_NFS_V4_1 */ | ||
229 | |||
218 | struct xprt_create { | 230 | struct xprt_create { |
219 | int ident; /* XPRT_TRANSPORT identifier */ | 231 | int ident; /* XPRT_TRANSPORT identifier */ |
220 | struct sockaddr * srcaddr; /* optional local address */ | 232 | struct sockaddr * srcaddr; /* optional local address */ |