Lines Matching refs:lh
691 struct gfs2_log_header *lh; in gfs2_write_log_header() local
699 lh = page_address(page); in gfs2_write_log_header()
700 clear_page(lh); in gfs2_write_log_header()
702 lh->lh_header.mh_magic = cpu_to_be32(GFS2_MAGIC); in gfs2_write_log_header()
703 lh->lh_header.mh_type = cpu_to_be32(GFS2_METATYPE_LH); in gfs2_write_log_header()
704 lh->lh_header.__pad0 = cpu_to_be64(0); in gfs2_write_log_header()
705 lh->lh_header.mh_format = cpu_to_be32(GFS2_FORMAT_LH); in gfs2_write_log_header()
706 lh->lh_header.mh_jid = cpu_to_be32(sdp->sd_jdesc->jd_jid); in gfs2_write_log_header()
707 lh->lh_sequence = cpu_to_be64(seq); in gfs2_write_log_header()
708 lh->lh_flags = cpu_to_be32(flags); in gfs2_write_log_header()
709 lh->lh_tail = cpu_to_be32(tail); in gfs2_write_log_header()
710 lh->lh_blkno = cpu_to_be32(lblock); in gfs2_write_log_header()
711 hash = ~crc32(~0, lh, LH_V1_SIZE); in gfs2_write_log_header()
712 lh->lh_hash = cpu_to_be32(hash); in gfs2_write_log_header()
715 lh->lh_nsec = cpu_to_be32(tv.tv_nsec); in gfs2_write_log_header()
716 lh->lh_sec = cpu_to_be64(tv.tv_sec); in gfs2_write_log_header()
724 lh->lh_addr = cpu_to_be64(dblock); in gfs2_write_log_header()
725 lh->lh_jinode = cpu_to_be64(GFS2_I(jd->jd_inode)->i_no_addr); in gfs2_write_log_header()
731 lh->lh_statfs_addr = in gfs2_write_log_header()
733 lh->lh_quota_addr = in gfs2_write_log_header()
737 lh->lh_local_total = cpu_to_be64(l_sc->sc_total); in gfs2_write_log_header()
738 lh->lh_local_free = cpu_to_be64(l_sc->sc_free); in gfs2_write_log_header()
739 lh->lh_local_dinodes = cpu_to_be64(l_sc->sc_dinodes); in gfs2_write_log_header()
745 crc = crc32c(~0, (void *)lh + LH_V1_SIZE + 4, in gfs2_write_log_header()
747 lh->lh_crc = cpu_to_be32(crc); in gfs2_write_log_header()