Home
last modified time | relevance | path

Searched refs:llh (Results 1 – 8 of 8) sorted by relevance

/linux-4.1.27/drivers/staging/lustre/lustre/obdclass/
Dllog_cat.c67 struct llog_log_hdr *llh; in llog_cat_new_log() local
71 llh = cathandle->lgh_hdr; in llog_cat_new_log()
72 bitmap_size = LLOG_BITMAP_SIZE(llh); in llog_cat_new_log()
77 if (llh->llh_cat_idx == index) { in llog_cat_new_log()
105 llh->llh_count++; in llog_cat_new_log()
106 if (ext2_set_bit(index, llh->llh_bitmap)) { in llog_cat_new_log()
115 llh->llh_tail.lrt_index = index; in llog_cat_new_log()
220 struct llog_log_hdr *llh = loghandle->lgh_hdr; in llog_cat_close() local
225 llh = loghandle->lgh_hdr; in llog_cat_close()
226 if (loghandle->lgh_obj != NULL && llh != NULL && in llog_cat_close()
[all …]
Dllog.c112 struct llog_log_hdr *llh = loghandle->lgh_hdr; in llog_cancel_rec() local
124 if (!ext2_clear_bit(index, llh->llh_bitmap)) { in llog_cancel_rec()
130 llh->llh_count--; in llog_cancel_rec()
132 if ((llh->llh_flags & LLOG_F_ZAP_WHEN_EMPTY) && in llog_cancel_rec()
133 (llh->llh_count == 1) && in llog_cancel_rec()
149 rc = llog_write(env, loghandle, &llh->llh_hdr, NULL, 0, NULL, 0); in llog_cancel_rec()
161 ext2_set_bit(index, llh->llh_bitmap); in llog_cancel_rec()
162 llh->llh_count++; in llog_cancel_rec()
184 struct llog_log_hdr *llh = handle->lgh_hdr; in llog_read_header() local
187 llh->llh_count = 1; /* for the header record */ in llog_read_header()
[all …]
Dllog_swab.c242 struct llog_log_hdr *llh = (struct llog_log_hdr *)rec; in lustre_swab_llog_rec() local
244 __swab64s(&llh->llh_timestamp); in lustre_swab_llog_rec()
245 __swab32s(&llh->llh_count); in lustre_swab_llog_rec()
246 __swab32s(&llh->llh_bitmap_offset); in lustre_swab_llog_rec()
247 __swab32s(&llh->llh_flags); in lustre_swab_llog_rec()
248 __swab32s(&llh->llh_size); in lustre_swab_llog_rec()
249 __swab32s(&llh->llh_cat_idx); in lustre_swab_llog_rec()
250 tail = &llh->llh_tail; in lustre_swab_llog_rec()
Dobd_config.c1581 struct llog_handle *llh; in class_config_parse_llog() local
1586 rc = llog_open(env, ctxt, &llh, NULL, name, LLOG_OPEN_EXISTS); in class_config_parse_llog()
1590 rc = llog_init_handle(env, llh, LLOG_F_IS_PLAIN, NULL); in class_config_parse_llog()
1605 rc = llog_process(env, llh, callback, cfg, &cd); in class_config_parse_llog()
1613 llog_close(env, llh); in class_config_parse_llog()
1693 struct llog_handle *llh; in class_config_dump_llog() local
1698 rc = llog_open(env, ctxt, &llh, NULL, name, LLOG_OPEN_EXISTS); in class_config_dump_llog()
1702 rc = llog_init_handle(env, llh, LLOG_F_IS_PLAIN, NULL); in class_config_dump_llog()
1706 rc = llog_process(env, llh, class_config_dump_handler, cfg, NULL); in class_config_dump_llog()
1708 llog_close(env, llh); in class_config_dump_llog()
/linux-4.1.27/drivers/staging/lustre/lustre/lov/
Dlov_internal.h146 static inline void lov_llh_put(struct lov_lock_handles *llh) in lov_llh_put() argument
148 CDEBUG(D_INFO, "PUTting llh %p : new refcount %d\n", llh, in lov_llh_put()
149 atomic_read(&llh->llh_refcount) - 1); in lov_llh_put()
150 LASSERT(atomic_read(&llh->llh_refcount) > 0 && in lov_llh_put()
151 atomic_read(&llh->llh_refcount) < 0x5a5a); in lov_llh_put()
152 if (atomic_dec_and_test(&llh->llh_refcount)) { in lov_llh_put()
153 class_handle_unhash(&llh->llh_handle); in lov_llh_put()
156 if (atomic_read(&llh->llh_refcount)) in lov_llh_put()
159 OBD_FREE_RCU(llh, sizeof(*llh) + in lov_llh_put()
160 sizeof(*llh->llh_handles) * llh->llh_stripe_count, in lov_llh_put()
[all …]
/linux-4.1.27/drivers/staging/lustre/lustre/include/
Dlustre_log.h120 int llog_copy_handler(const struct lu_env *env, struct llog_handle *llh,
197 struct llog_handle *llh);
/linux-4.1.27/drivers/staging/lustre/lustre/mdc/
Dmdc_request.c1554 static int changelog_kkuc_cb(const struct lu_env *env, struct llog_handle *llh, in changelog_kkuc_cb() argument
1600 struct llog_handle *llh = NULL; in mdc_changelog_send_thread() local
1619 rc = llog_open(NULL, ctxt, &llh, NULL, CHANGELOG_CATALOG, in mdc_changelog_send_thread()
1626 rc = llog_init_handle(NULL, llh, LLOG_F_IS_CAT, NULL); in mdc_changelog_send_thread()
1632 rc = llog_cat_process(NULL, llh, changelog_kkuc_cb, cs, 0, 0); in mdc_changelog_send_thread()
1643 if (llh) in mdc_changelog_send_thread()
1644 llog_cat_close(NULL, llh); in mdc_changelog_send_thread()
/linux-4.1.27/drivers/staging/lustre/lustre/include/lustre/
Dlustre_idl.h3201 #define LLOG_BITMAP_SIZE(llh) (__u32)((llh->llh_hdr.lrh_len - \ argument
3202 llh->llh_bitmap_offset - \
3203 sizeof(llh->llh_tail)) * 8)