Lines Matching refs:lh
120 int __get_log_header(struct gfs2_sbd *sdp, const struct gfs2_log_header *lh, in __get_log_header() argument
125 if (lh->lh_header.mh_magic != cpu_to_be32(GFS2_MAGIC) || in __get_log_header()
126 lh->lh_header.mh_type != cpu_to_be32(GFS2_METATYPE_LH) || in __get_log_header()
127 (blkno && be32_to_cpu(lh->lh_blkno) != blkno)) in __get_log_header()
130 hash = crc32(~0, lh, LH_V1_SIZE - 4); in __get_log_header()
133 if (be32_to_cpu(lh->lh_hash) != hash) in __get_log_header()
136 crc = crc32c(~0, (void *)lh + LH_V1_SIZE + 4, in __get_log_header()
139 if ((lh->lh_crc != 0 && be32_to_cpu(lh->lh_crc) != crc)) in __get_log_header()
142 head->lh_sequence = be64_to_cpu(lh->lh_sequence); in __get_log_header()
143 head->lh_flags = be32_to_cpu(lh->lh_flags); in __get_log_header()
144 head->lh_tail = be32_to_cpu(lh->lh_tail); in __get_log_header()
145 head->lh_blkno = be32_to_cpu(lh->lh_blkno); in __get_log_header()
218 struct gfs2_log_header_host lh; in foreach_descriptor() local
219 error = get_log_header(jd, start, &lh); in foreach_descriptor()