Lines Matching refs:lh
120 int __get_log_header(struct gfs2_sbd *sdp, const struct gfs2_log_header *lh,
125 if (lh->lh_header.mh_magic != cpu_to_be32(GFS2_MAGIC) ||
126 lh->lh_header.mh_type != cpu_to_be32(GFS2_METATYPE_LH) ||
127 (blkno && be32_to_cpu(lh->lh_blkno) != blkno))
130 hash = crc32(~0, lh, LH_V1_SIZE - 4);
133 if (be32_to_cpu(lh->lh_hash) != hash)
136 crc = crc32c(~0, (void *)lh + LH_V1_SIZE + 4,
139 if ((lh->lh_crc != 0 && be32_to_cpu(lh->lh_crc) != crc))
142 head->lh_sequence = be64_to_cpu(lh->lh_sequence);
143 head->lh_flags = be32_to_cpu(lh->lh_flags);
144 head->lh_tail = be32_to_cpu(lh->lh_tail);
145 head->lh_blkno = be32_to_cpu(lh->lh_blkno);
147 head->lh_local_total = be64_to_cpu(lh->lh_local_total);
148 head->lh_local_free = be64_to_cpu(lh->lh_local_free);
149 head->lh_local_dinodes = be64_to_cpu(lh->lh_local_dinodes);
157 * @lh: the log header to return
222 struct gfs2_log_header_host lh;
223 error = get_log_header(jd, start, &lh);