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