Lines Matching refs:lh
120 static int gfs2_log_header_in(struct gfs2_log_header_host *lh, const void *buf) in gfs2_log_header_in() argument
128 lh->lh_sequence = be64_to_cpu(str->lh_sequence); in gfs2_log_header_in()
129 lh->lh_flags = be32_to_cpu(str->lh_flags); in gfs2_log_header_in()
130 lh->lh_tail = be32_to_cpu(str->lh_tail); in gfs2_log_header_in()
131 lh->lh_blkno = be32_to_cpu(str->lh_blkno); in gfs2_log_header_in()
132 lh->lh_hash = be32_to_cpu(str->lh_hash); in gfs2_log_header_in()
154 struct gfs2_log_header_host uninitialized_var(lh); in get_log_header()
167 error = gfs2_log_header_in(&lh, bh->b_data); in get_log_header()
170 if (error || lh.lh_blkno != blk || lh.lh_hash != hash) in get_log_header()
173 *head = lh; in get_log_header()
226 struct gfs2_log_header_host lh; in jhead_scan() local
233 error = get_log_header(jd, blk, &lh); in jhead_scan()
239 if (lh.lh_sequence == head->lh_sequence) { in jhead_scan()
243 if (lh.lh_sequence < head->lh_sequence) in jhead_scan()
246 *head = lh; in jhead_scan()
338 struct gfs2_log_header_host lh; in foreach_descriptor() local
339 error = get_log_header(jd, start, &lh); in foreach_descriptor()
386 struct gfs2_log_header *lh; in clean_journal() local
410 lh = (struct gfs2_log_header *)bh->b_data; in clean_journal()
411 memset(lh, 0, sizeof(struct gfs2_log_header)); in clean_journal()
412 lh->lh_header.mh_magic = cpu_to_be32(GFS2_MAGIC); in clean_journal()
413 lh->lh_header.mh_type = cpu_to_be32(GFS2_METATYPE_LH); in clean_journal()
414 lh->lh_header.__pad0 = cpu_to_be64(0); in clean_journal()
415 lh->lh_header.mh_format = cpu_to_be32(GFS2_FORMAT_LH); in clean_journal()
416 lh->lh_header.mh_jid = cpu_to_be32(sdp->sd_jdesc->jd_jid); in clean_journal()
417 lh->lh_sequence = cpu_to_be64(head->lh_sequence + 1); in clean_journal()
418 lh->lh_flags = cpu_to_be32(GFS2_LOG_HEAD_UNMOUNT); in clean_journal()
419 lh->lh_blkno = cpu_to_be32(lblock); in clean_journal()
420 hash = gfs2_disk_hash((const char *)lh, sizeof(struct gfs2_log_header)); in clean_journal()
421 lh->lh_hash = cpu_to_be32(hash); in clean_journal()