Searched refs:loghandle (Results 1 – 5 of 5) sorted by relevance
/drivers/staging/lustre/lustre/obdclass/ |
D | llog.c | 60 struct llog_handle *loghandle; in llog_alloc_handle() local 62 loghandle = kzalloc(sizeof(*loghandle), GFP_NOFS); in llog_alloc_handle() 63 if (!loghandle) in llog_alloc_handle() 66 init_rwsem(&loghandle->lgh_lock); in llog_alloc_handle() 67 spin_lock_init(&loghandle->lgh_hdr_lock); in llog_alloc_handle() 68 INIT_LIST_HEAD(&loghandle->u.phd.phd_entry); in llog_alloc_handle() 69 atomic_set(&loghandle->lgh_refcount, 1); in llog_alloc_handle() 71 return loghandle; in llog_alloc_handle() 77 static void llog_free_handle(struct llog_handle *loghandle) in llog_free_handle() argument 79 LASSERT(loghandle != NULL); in llog_free_handle() [all …]
|
D | llog_cat.c | 69 struct llog_handle *loghandle; in llog_cat_id2handle() local 76 list_for_each_entry(loghandle, &cathandle->u.chd.chd_head, in llog_cat_id2handle() 78 struct llog_logid *cgl = &loghandle->lgh_id; in llog_cat_id2handle() 84 loghandle->lgh_ctxt->loc_obd->obd_name, in llog_cat_id2handle() 89 loghandle->u.phd.phd_cat_handle = cathandle; in llog_cat_id2handle() 97 rc = llog_open(env, cathandle->lgh_ctxt, &loghandle, logid, NULL, in llog_cat_id2handle() 106 rc = llog_init_handle(env, loghandle, LLOG_F_IS_PLAIN, NULL); in llog_cat_id2handle() 108 llog_close(env, loghandle); in llog_cat_id2handle() 109 loghandle = NULL; in llog_cat_id2handle() 114 list_add(&loghandle->u.phd.phd_entry, &cathandle->u.chd.chd_head); in llog_cat_id2handle() [all …]
|
D | llog_internal.h | 67 void llog_handle_get(struct llog_handle *loghandle); 68 void llog_handle_put(struct llog_handle *loghandle); 73 struct llog_handle *loghandle, 76 struct llog_handle *loghandle, int index);
|
/drivers/staging/lustre/lustre/ptlrpc/ |
D | llog_client.c | 147 struct llog_handle *loghandle, in llog_client_next_block() argument 157 LLOG_CLIENT_ENTRY(loghandle->lgh_ctxt, imp); in llog_client_next_block() 167 body->lgd_logid = loghandle->lgh_id; in llog_client_next_block() 168 body->lgd_ctxt_idx = loghandle->lgh_ctxt->loc_idx - 1; in llog_client_next_block() 169 body->lgd_llh_flags = loghandle->lgh_hdr->llh_flags; in llog_client_next_block() 201 LLOG_CLIENT_EXIT(loghandle->lgh_ctxt, imp); in llog_client_next_block() 206 struct llog_handle *loghandle, in llog_client_prev_block() argument 215 LLOG_CLIENT_ENTRY(loghandle->lgh_ctxt, imp); in llog_client_prev_block() 225 body->lgd_logid = loghandle->lgh_id; in llog_client_prev_block() 226 body->lgd_ctxt_idx = loghandle->lgh_ctxt->loc_idx - 1; in llog_client_prev_block() [all …]
|
/drivers/staging/lustre/lustre/include/ |
D | lustre_log.h | 88 int llog_process(const struct lu_env *env, struct llog_handle *loghandle, 91 struct llog_handle *loghandle, 202 struct llog_handle *loghandle, 258 static inline int llog_handle2ops(struct llog_handle *loghandle, in llog_handle2ops() argument 261 if (loghandle == NULL || loghandle->lgh_logops == NULL) in llog_handle2ops() 264 *lop = loghandle->lgh_logops; in llog_handle2ops() 350 struct llog_handle *loghandle, int *cur_idx, in llog_next_block() argument 357 rc = llog_handle2ops(loghandle, &lop); in llog_next_block() 363 rc = lop->lop_next_block(env, loghandle, cur_idx, next_idx, in llog_next_block()
|