Whamcloud - gitweb
Branch b1_8
authoryangsheng <yangsheng>
Tue, 3 Nov 2009 08:34:30 +0000 (08:34 +0000)
committeryangsheng <yangsheng>
Tue, 3 Nov 2009 08:34:30 +0000 (08:34 +0000)
b=21244

i=johann, yangsheng

Move struct lu_client_seq to obd.h.
Author: adilger

lustre/include/lustre/lustre_idl.h
lustre/include/obd.h

index f96c5b6..24ac61a 100644 (file)
@@ -858,37 +858,6 @@ enum lu_cli_type {
         LUSTRE_SEQ_DATA
 };
 
-struct lu_client_seq {
-        /* Sequence-controller export. */
-        struct obd_export      *lcs_exp;
-        struct semaphore        lcs_sem;
-
-        /*
-         * Range of allowed for allocation sequences. When using lu_client_seq
-         * on clients, this contains meta-sequence range. And for servers this
-         * contains super-sequence range.
-         */
-        struct lu_seq_range         lcs_space;
-
-        /* This holds last allocated fid in last obtained seq */
-        struct lu_fid           lcs_fid;
-
-        /* LUSTRE_SEQ_METADATA or LUSTRE_SEQ_DATA */
-        enum lu_cli_type        lcs_type;
-        /*
-         * Service uuid, passed from MDT + seq name to form unique seq name to
-         * use it with procfs.
-         */
-        char                    lcs_name[80];
-
-        /*
-         * Sequence width, that is how many objects may be allocated in one
-         * sequence. Default value for it is LUSTRE_SEQ_MAX_WIDTH.
-         */
-        __u64                   lcs_width;
-
-};
-
 /*
  * fid constants
  */
index ad93b0e..a51cf93 100644 (file)
@@ -419,6 +419,37 @@ struct timeout_item {
         struct list_head   ti_chain;
 };
 
+struct lu_client_seq {
+        /* Sequence-controller export. */
+        struct obd_export      *lcs_exp;
+        struct semaphore        lcs_sem;
+
+        /*
+         * Range of allowed for allocation sequences. When using lu_client_seq
+         * on clients, this contains meta-sequence range. And for servers this
+         * contains super-sequence range.
+         */
+        struct lu_seq_range         lcs_space;
+
+        /* This holds last allocated fid in last obtained seq */
+        struct lu_fid           lcs_fid;
+
+        /* LUSTRE_SEQ_METADATA or LUSTRE_SEQ_DATA */
+        enum lu_cli_type        lcs_type;
+        /*
+         * Service uuid, passed from MDT + seq name to form unique seq name to
+         * use it with procfs.
+         */
+        char                    lcs_name[80];
+
+        /*
+         * Sequence width, that is how many objects may be allocated in one
+         * sequence. Default value for it is LUSTRE_SEQ_MAX_WIDTH.
+         */
+        __u64                   lcs_width;
+
+};
+
 struct client_obd {
         struct rw_semaphore      cl_sem;
         struct obd_uuid          cl_target_uuid;