Lines Matching refs:lh
763 struct gfs2_log_header *lh;
775 lh = page_address(page);
776 clear_page(lh);
778 lh->lh_header.mh_magic = cpu_to_be32(GFS2_MAGIC);
779 lh->lh_header.mh_type = cpu_to_be32(GFS2_METATYPE_LH);
780 lh->lh_header.__pad0 = cpu_to_be64(0);
781 lh->lh_header.mh_format = cpu_to_be32(GFS2_FORMAT_LH);
782 lh->lh_header.mh_jid = cpu_to_be32(sdp->sd_jdesc->jd_jid);
783 lh->lh_sequence = cpu_to_be64(seq);
784 lh->lh_flags = cpu_to_be32(flags);
785 lh->lh_tail = cpu_to_be32(tail);
786 lh->lh_blkno = cpu_to_be32(lblock);
787 hash = ~crc32(~0, lh, LH_V1_SIZE);
788 lh->lh_hash = cpu_to_be32(hash);
791 lh->lh_nsec = cpu_to_be32(tv.tv_nsec);
792 lh->lh_sec = cpu_to_be64(tv.tv_sec);
800 lh->lh_addr = cpu_to_be64(dblock);
801 lh->lh_jinode = cpu_to_be64(GFS2_I(jd->jd_inode)->i_no_addr);
807 lh->lh_statfs_addr =
809 lh->lh_quota_addr =
813 lh->lh_local_total = cpu_to_be64(l_sc->sc_total);
814 lh->lh_local_free = cpu_to_be64(l_sc->sc_free);
815 lh->lh_local_dinodes = cpu_to_be64(l_sc->sc_dinodes);
821 crc = crc32c(~0, (void *)lh + LH_V1_SIZE + 4,
823 lh->lh_crc = cpu_to_be32(crc);