Lines Matching refs:lh
118 int __get_log_header(struct gfs2_sbd *sdp, const struct gfs2_log_header *lh,
123 if (lh->lh_header.mh_magic != cpu_to_be32(GFS2_MAGIC) ||
124 lh->lh_header.mh_type != cpu_to_be32(GFS2_METATYPE_LH) ||
125 (blkno && be32_to_cpu(lh->lh_blkno) != blkno))
128 hash = crc32(~0, lh, LH_V1_SIZE - 4);
131 if (be32_to_cpu(lh->lh_hash) != hash)
134 crc = crc32c(~0, (void *)lh + LH_V1_SIZE + 4,
137 if ((lh->lh_crc != 0 && be32_to_cpu(lh->lh_crc) != crc))
140 head->lh_sequence = be64_to_cpu(lh->lh_sequence);
141 head->lh_flags = be32_to_cpu(lh->lh_flags);
142 head->lh_tail = be32_to_cpu(lh->lh_tail);
143 head->lh_blkno = be32_to_cpu(lh->lh_blkno);
145 head->lh_local_total = be64_to_cpu(lh->lh_local_total);
146 head->lh_local_free = be64_to_cpu(lh->lh_local_free);
147 head->lh_local_dinodes = be64_to_cpu(lh->lh_local_dinodes);
221 struct gfs2_log_header_host lh;
222 error = get_log_header(jd, start, &lh);