Lines Matching refs:lh

828 	struct gfs2_log_header *lh;  in gfs2_write_log_header()  local
840 lh = page_address(page); in gfs2_write_log_header()
841 clear_page(lh); in gfs2_write_log_header()
843 lh->lh_header.mh_magic = cpu_to_be32(GFS2_MAGIC); in gfs2_write_log_header()
844 lh->lh_header.mh_type = cpu_to_be32(GFS2_METATYPE_LH); in gfs2_write_log_header()
845 lh->lh_header.__pad0 = cpu_to_be64(0); in gfs2_write_log_header()
846 lh->lh_header.mh_format = cpu_to_be32(GFS2_FORMAT_LH); in gfs2_write_log_header()
847 lh->lh_header.mh_jid = cpu_to_be32(sdp->sd_jdesc->jd_jid); in gfs2_write_log_header()
848 lh->lh_sequence = cpu_to_be64(seq); in gfs2_write_log_header()
849 lh->lh_flags = cpu_to_be32(flags); in gfs2_write_log_header()
850 lh->lh_tail = cpu_to_be32(tail); in gfs2_write_log_header()
851 lh->lh_blkno = cpu_to_be32(lblock); in gfs2_write_log_header()
852 hash = ~crc32(~0, lh, LH_V1_SIZE); in gfs2_write_log_header()
853 lh->lh_hash = cpu_to_be32(hash); in gfs2_write_log_header()
856 lh->lh_nsec = cpu_to_be32(tv.tv_nsec); in gfs2_write_log_header()
857 lh->lh_sec = cpu_to_be64(tv.tv_sec); in gfs2_write_log_header()
869 lh->lh_addr = cpu_to_be64(dblock); in gfs2_write_log_header()
870 lh->lh_jinode = cpu_to_be64(GFS2_I(jd->jd_inode)->i_no_addr); in gfs2_write_log_header()
876 lh->lh_statfs_addr = in gfs2_write_log_header()
878 lh->lh_quota_addr = in gfs2_write_log_header()
882 lh->lh_local_total = cpu_to_be64(l_sc->sc_total); in gfs2_write_log_header()
883 lh->lh_local_free = cpu_to_be64(l_sc->sc_free); in gfs2_write_log_header()
884 lh->lh_local_dinodes = cpu_to_be64(l_sc->sc_dinodes); in gfs2_write_log_header()
890 crc = crc32c(~0, (void *)lh + LH_V1_SIZE + 4, in gfs2_write_log_header()
892 lh->lh_crc = cpu_to_be32(crc); in gfs2_write_log_header()