Lines Matching refs:rec

302 		struct llog_rec_hdr *rec;
324 /* NB: when rec->lrh_len is accessed it is already swabbed
325 * since it is used at the "end" of the loop and the rec
327 for (rec = (struct llog_rec_hdr *)buf;
328 (char *)rec < buf + LLOG_CHUNK_SIZE;
329 rec = (struct llog_rec_hdr *)((char *)rec + rec->lrh_len)){
331 CDEBUG(D_OTHER, "processing rec 0x%p type %#x\n",
332 rec, rec->lrh_type);
334 if (LLOG_REC_HDR_NEEDS_SWABBING(rec))
335 lustre_swab_llog_rec(rec);
338 rec->lrh_type, rec->lrh_index);
340 if (rec->lrh_index == 0) {
341 /* probably another rec just got added? */
347 if (rec->lrh_len == 0 ||
348 rec->lrh_len > LLOG_CHUNK_SIZE) {
350 "index %d/%d\n", rec->lrh_len,
351 rec->lrh_index, index);
356 if (rec->lrh_index < index) {
358 rec->lrh_index);
364 rec->lrh_index, rec->lrh_len,
365 (int)(buf + LLOG_CHUNK_SIZE - (char *)rec));
367 loghandle->lgh_cur_idx = rec->lrh_index;
368 loghandle->lgh_cur_offset = (char *)rec - (char *)buf +
373 rc = lpi->lpi_cb(lpi->lpi_env, loghandle, rec,
381 rec->lrh_index);
499 struct llog_rec_hdr *rec;
518 rec = buf;
519 idx = rec->lrh_index;
522 rec = (void *)rec + rec->lrh_len;
523 if (LLOG_REC_HDR_NEEDS_SWABBING(rec))
524 lustre_swab_llog_rec(rec);
528 tail = (void *)rec + rec->lrh_len - sizeof(*tail);
540 rec = (void *)tail - tail->lrt_len +
543 rc = cb(env, loghandle, rec, data);
648 struct llog_rec_hdr *rec, int idx,
664 rc = lop->lop_declare_write_rec(env, handle, rec, idx, th);
672 struct llog_rec_hdr *rec, struct llog_cookie *logcookies,
687 buflen = rec->lrh_len + sizeof(struct llog_rec_hdr) +
690 buflen = rec->lrh_len;
696 rc = lop->lop_write_rec(env, handle, rec, logcookies, numcookies,
705 struct llog_rec_hdr *rec, struct llog_cookie *logcookies,
716 rc = lgh->lgh_logops->lop_add(env, lgh, rec, logcookies, buf, th);
724 struct llog_rec_hdr *rec, struct thandle *th)
734 rc = lgh->lgh_logops->lop_declare_add(env, lgh, rec, th);
818 struct llog_rec_hdr *rec, struct llog_cookie *reccookie,
835 rc = llog_declare_write_rec(env, loghandle, rec, idx, th);
844 rc = llog_write_rec(env, loghandle, rec, reccookie,
934 struct llog_rec_hdr *rec, void *data)
939 return llog_write(env, copy_llh, rec, NULL, 0, NULL, -1);