Lines Matching refs:lh

683 	struct gfs2_log_header *lh;  in gfs2_write_log_header()  local
691 lh = page_address(page); in gfs2_write_log_header()
692 clear_page(lh); in gfs2_write_log_header()
694 lh->lh_header.mh_magic = cpu_to_be32(GFS2_MAGIC); in gfs2_write_log_header()
695 lh->lh_header.mh_type = cpu_to_be32(GFS2_METATYPE_LH); in gfs2_write_log_header()
696 lh->lh_header.__pad0 = cpu_to_be64(0); in gfs2_write_log_header()
697 lh->lh_header.mh_format = cpu_to_be32(GFS2_FORMAT_LH); in gfs2_write_log_header()
698 lh->lh_header.mh_jid = cpu_to_be32(sdp->sd_jdesc->jd_jid); in gfs2_write_log_header()
699 lh->lh_sequence = cpu_to_be64(seq); in gfs2_write_log_header()
700 lh->lh_flags = cpu_to_be32(flags); in gfs2_write_log_header()
701 lh->lh_tail = cpu_to_be32(tail); in gfs2_write_log_header()
702 lh->lh_blkno = cpu_to_be32(lblock); in gfs2_write_log_header()
703 hash = ~crc32(~0, lh, LH_V1_SIZE); in gfs2_write_log_header()
704 lh->lh_hash = cpu_to_be32(hash); in gfs2_write_log_header()
707 lh->lh_nsec = cpu_to_be32(tv.tv_nsec); in gfs2_write_log_header()
708 lh->lh_sec = cpu_to_be64(tv.tv_sec); in gfs2_write_log_header()
716 lh->lh_addr = cpu_to_be64(dblock); in gfs2_write_log_header()
717 lh->lh_jinode = cpu_to_be64(GFS2_I(jd->jd_inode)->i_no_addr); in gfs2_write_log_header()
723 lh->lh_statfs_addr = in gfs2_write_log_header()
725 lh->lh_quota_addr = in gfs2_write_log_header()
729 lh->lh_local_total = cpu_to_be64(l_sc->sc_total); in gfs2_write_log_header()
730 lh->lh_local_free = cpu_to_be64(l_sc->sc_free); in gfs2_write_log_header()
731 lh->lh_local_dinodes = cpu_to_be64(l_sc->sc_dinodes); in gfs2_write_log_header()
737 crc = crc32c(~0, (void *)lh + LH_V1_SIZE + 4, in gfs2_write_log_header()
739 lh->lh_crc = cpu_to_be32(crc); in gfs2_write_log_header()