Whamcloud - gitweb
LU-3963 client: move llite,lov,target,obdecho to linux list api
[fs/lustre-release.git] / lustre / target / tgt_internal.h
index 7241a3e..f0ed071 100644 (file)
@@ -56,7 +56,7 @@ struct tx_arg {
        tx_exec_func_t           undo_fn;
        struct dt_object        *object;
        char                    *file;
-       struct update_reply     *reply;
+       struct object_update_reply *reply;
        int                      line;
        int                      index;
        union {
@@ -91,13 +91,11 @@ struct tx_arg {
        } u;
 };
 
-#define TX_MAX_OPS       10
 struct thandle_exec_args {
        struct thandle          *ta_handle;
-       struct dt_device        *ta_dev;
-       struct tx_arg            ta_args[TX_MAX_OPS];
-       int                      ta_err;
-       int                      ta_argno;   /* used args */
+       int                     ta_argno;   /* used args */
+       int                     ta_alloc_args; /* allocated args count */
+       struct tx_arg           **ta_args;
 };
 
 /**
@@ -129,12 +127,12 @@ struct tgt_thread_info {
                        struct l_wait_info tti_wait_info;
                } rdpg;
                struct {
-                       struct dt_object_format  tti_update_dof;
-                       struct update_reply     *tti_update_reply;
-                       struct update           *tti_update;
-                       int                      tti_update_reply_index;
-                       struct obdo              tti_obdo;
-                       struct dt_object        *tti_dt_object;
+                       struct dt_object_format    tti_update_dof;
+                       struct object_update_reply *tti_update_reply;
+                       struct object_update       *tti_update;
+                       int                        tti_update_reply_index;
+                       struct obdo                tti_obdo;
+                       struct dt_object           *tti_dt_object;
                } update;
        } tti_u;
        struct lfsck_request tti_lr;
@@ -202,6 +200,9 @@ int out_handle(struct tgt_session_info *tsi);
 #define out_tx_destroy(info, obj, th, reply, idx) \
        __out_tx_destroy(info, obj, th, reply, idx, __FILE__, __LINE__)
 
+#define out_tx_write(info, obj, buf, pos, th, reply, idx) \
+       __out_tx_write(info, obj, buf, pos, th, reply, idx, __FILE__, __LINE__)
+
 extern struct page *tgt_page_to_corrupt;
 
 struct tgt_thread_big_cache {