]> git.karo-electronics.de Git - linux-beck.git/commitdiff
nfsd41: sunrpc: move struct rpc_buffer def into sunrpc.h
authorBenny Halevy <bhalevy@panasas.com>
Thu, 10 Sep 2009 09:25:04 +0000 (12:25 +0300)
committerJ. Bruce Fields <bfields@citi.umich.edu>
Thu, 10 Sep 2009 16:09:06 +0000 (12:09 -0400)
Move struct rpc_buffer's definition into a sunrpc.h, a common, internal
header file, in preparation for supporting the nfsv4.1 backchannel.

Signed-off-by: Benny Halevy <bhalevy@panasas.com>
[nfs41: sunrpc: #include <linux/net.h> from sunrpc.h]
Signed-off-by: Benny Halevy <bhalevy@panasas.com>
Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
net/sunrpc/sched.c
net/sunrpc/sunrpc.h

index 8f459abe97cff614525775560ec355f9d4c69246..cef74ba0666c2c7cab9a755a29c8ce5985a5dde7 100644 (file)
@@ -21,6 +21,8 @@
 
 #include <linux/sunrpc/clnt.h>
 
+#include "sunrpc.h"
+
 #ifdef RPC_DEBUG
 #define RPCDBG_FACILITY                RPCDBG_SCHED
 #define RPC_TASK_MAGIC_ID      0xf00baa
@@ -711,11 +713,6 @@ static void rpc_async_schedule(struct work_struct *work)
        __rpc_execute(container_of(work, struct rpc_task, u.tk_work));
 }
 
-struct rpc_buffer {
-       size_t  len;
-       char    data[];
-};
-
 /**
  * rpc_malloc - allocate an RPC buffer
  * @task: RPC task that will use this buffer
index 5d9dd742264ba3facff28e8fdf3496d2aa24df81..13171e63f51bc816c4d3a7cef5081864be2b4c63 100644 (file)
@@ -27,6 +27,16 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #ifndef _NET_SUNRPC_SUNRPC_H
 #define _NET_SUNRPC_SUNRPC_H
 
+#include <linux/net.h>
+
+/*
+ * Header for dynamically allocated rpc buffers.
+ */
+struct rpc_buffer {
+       size_t  len;
+       char    data[];
+};
+
 static inline int rpc_reply_expected(struct rpc_task *task)
 {
        return (task->tk_msg.rpc_proc != NULL) &&