From 474733dd02f20b7867800e9807eca17a4d2dd6e5 Mon Sep 17 00:00:00 2001 From: yangsheng Date: Tue, 3 Nov 2009 08:34:30 +0000 Subject: [PATCH] Branch b1_8 b=21244 i=johann, yangsheng Move struct lu_client_seq to obd.h. Author: adilger --- lustre/include/lustre/lustre_idl.h | 31 ------------------------------- lustre/include/obd.h | 31 +++++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 31 deletions(-) diff --git a/lustre/include/lustre/lustre_idl.h b/lustre/include/lustre/lustre_idl.h index f96c5b6..24ac61a 100644 --- a/lustre/include/lustre/lustre_idl.h +++ b/lustre/include/lustre/lustre_idl.h @@ -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 */ diff --git a/lustre/include/obd.h b/lustre/include/obd.h index ad93b0e..a51cf93 100644 --- a/lustre/include/obd.h +++ b/lustre/include/obd.h @@ -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; -- 1.8.3.1