Whamcloud - gitweb
LU-3963 obdclass: convert to linux list api
[fs/lustre-release.git] / lustre / include / lustre_log.h
index 446e1ca..4726ddd 100644 (file)
@@ -80,15 +80,16 @@ enum llog_open_param {
 };
 
 struct plain_handle_data {
-        cfs_list_t          phd_entry;
-        struct llog_handle *phd_cat_handle;
-        struct llog_cookie  phd_cookie; /* cookie of this log in its cat */
+       struct list_head        phd_entry;
+       struct llog_handle      *phd_cat_handle;
+       /* cookie of this log in its cat */
+       struct llog_cookie      phd_cookie;
 };
 
 struct cat_handle_data {
-        cfs_list_t              chd_head;
-        struct llog_handle     *chd_current_log; /* currently open log */
-       struct llog_handle      *chd_next_log; /* llog to be used next */
+       struct list_head        chd_head;
+       struct llog_handle     *chd_current_log;/* currently open log */
+       struct llog_handle     *chd_next_log;   /* llog to be used next */
 };
 
 static inline void logid_to_fid(struct llog_logid *id, struct lu_fid *fid)
@@ -410,12 +411,11 @@ static inline void llog_ctxt_put(struct llog_ctxt *ctxt)
        __llog_ctxt_put(NULL, ctxt);
 }
 
-static inline void llog_group_init(struct obd_llog_group *olg, int group)
+static inline void llog_group_init(struct obd_llog_group *olg)
 {
        init_waitqueue_head(&olg->olg_waitq);
        spin_lock_init(&olg->olg_lock);
        mutex_init(&olg->olg_cat_processing);
-       olg->olg_seq = group;
 }
 
 static inline int llog_group_set_ctxt(struct obd_llog_group *olg,