Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/staging/lustre/lustre/obdclass/
Dllog.c123 struct llog_log_hdr *llh = handle->lgh_hdr; in llog_read_header() local
126 llh->llh_count = 1; /* for the header record */ in llog_read_header()
127 llh->llh_hdr.lrh_type = LLOG_HDR_MAGIC; in llog_read_header()
128 llh->llh_hdr.lrh_len = llh->llh_tail.lrt_len = LLOG_CHUNK_SIZE; in llog_read_header()
129 llh->llh_hdr.lrh_index = llh->llh_tail.lrt_index = 0; in llog_read_header()
130 llh->llh_timestamp = ktime_get_real_seconds(); in llog_read_header()
132 memcpy(&llh->llh_tgtuuid, uuid, in llog_read_header()
133 sizeof(llh->llh_tgtuuid)); in llog_read_header()
134 llh->llh_bitmap_offset = offsetof(typeof(*llh), llh_bitmap); in llog_read_header()
135 ext2_set_bit(0, llh->llh_bitmap); in llog_read_header()
[all …]
Dllog_cat.c152 struct llog_handle *llh; in llog_cat_process_cb() local
163 rc = llog_cat_id2handle(env, cat_llh, &llh, &lir->lid_id); in llog_cat_process_cb()
179 rc = llog_process_or_fork(env, llh, d->lpd_cb, d->lpd_data, in llog_cat_process_cb()
184 rc = llog_process_or_fork(env, llh, d->lpd_cb, d->lpd_data, in llog_cat_process_cb()
188 llog_handle_put(llh); in llog_cat_process_cb()
199 struct llog_log_hdr *llh = cat_llh->lgh_hdr; in llog_cat_process_or_fork() local
202 LASSERT(llh->llh_flags & LLOG_F_IS_CAT); in llog_cat_process_or_fork()
208 if (llh->llh_cat_idx > cat_llh->lgh_last_idx) { in llog_cat_process_or_fork()
214 cd.lpcd_first_idx = llh->llh_cat_idx; in llog_cat_process_or_fork()
Dllog_swab.c239 struct llog_log_hdr *llh = (struct llog_log_hdr *)rec; in lustre_swab_llog_rec() local
241 __swab64s(&llh->llh_timestamp); in lustre_swab_llog_rec()
242 __swab32s(&llh->llh_count); in lustre_swab_llog_rec()
243 __swab32s(&llh->llh_bitmap_offset); in lustre_swab_llog_rec()
244 __swab32s(&llh->llh_flags); in lustre_swab_llog_rec()
245 __swab32s(&llh->llh_size); in lustre_swab_llog_rec()
246 __swab32s(&llh->llh_cat_idx); in lustre_swab_llog_rec()
247 tail = &llh->llh_tail; in lustre_swab_llog_rec()
Dobd_config.c1256 struct llog_handle *llh; in class_config_parse_llog() local
1261 rc = llog_open(env, ctxt, &llh, NULL, name, LLOG_OPEN_EXISTS); in class_config_parse_llog()
1265 rc = llog_init_handle(env, llh, LLOG_F_IS_PLAIN, NULL); in class_config_parse_llog()
1280 rc = llog_process(env, llh, callback, cfg, &cd); in class_config_parse_llog()
1288 llog_close(env, llh); in class_config_parse_llog()
/linux-4.4.14/drivers/staging/lustre/lustre/mdc/
Dmdc_request.c1459 static int changelog_kkuc_cb(const struct lu_env *env, struct llog_handle *llh, in changelog_kkuc_cb() argument
1505 struct llog_handle *llh = NULL; in mdc_changelog_send_thread() local
1524 rc = llog_open(NULL, ctxt, &llh, NULL, CHANGELOG_CATALOG, in mdc_changelog_send_thread()
1531 rc = llog_init_handle(NULL, llh, LLOG_F_IS_CAT, NULL); in mdc_changelog_send_thread()
1537 rc = llog_cat_process(NULL, llh, changelog_kkuc_cb, cs, 0, 0); in mdc_changelog_send_thread()
1548 if (llh) in mdc_changelog_send_thread()
1549 llog_cat_close(NULL, llh); in mdc_changelog_send_thread()
/linux-4.4.14/drivers/staging/lustre/lustre/include/lustre/
Dlustre_idl.h3180 #define LLOG_BITMAP_SIZE(llh) (__u32)((llh->llh_hdr.lrh_len - \ argument
3181 llh->llh_bitmap_offset - \
3182 sizeof(llh->llh_tail)) * 8)