Lines Matching refs:lh

836 	struct gfs2_log_header *lh;  in gfs2_write_log_header()  local
848 lh = page_address(page); in gfs2_write_log_header()
849 clear_page(lh); in gfs2_write_log_header()
851 lh->lh_header.mh_magic = cpu_to_be32(GFS2_MAGIC); in gfs2_write_log_header()
852 lh->lh_header.mh_type = cpu_to_be32(GFS2_METATYPE_LH); in gfs2_write_log_header()
853 lh->lh_header.__pad0 = cpu_to_be64(0); in gfs2_write_log_header()
854 lh->lh_header.mh_format = cpu_to_be32(GFS2_FORMAT_LH); in gfs2_write_log_header()
855 lh->lh_header.mh_jid = cpu_to_be32(sdp->sd_jdesc->jd_jid); in gfs2_write_log_header()
856 lh->lh_sequence = cpu_to_be64(seq); in gfs2_write_log_header()
857 lh->lh_flags = cpu_to_be32(flags); in gfs2_write_log_header()
858 lh->lh_tail = cpu_to_be32(tail); in gfs2_write_log_header()
859 lh->lh_blkno = cpu_to_be32(lblock); in gfs2_write_log_header()
860 hash = ~crc32(~0, lh, LH_V1_SIZE); in gfs2_write_log_header()
861 lh->lh_hash = cpu_to_be32(hash); in gfs2_write_log_header()
864 lh->lh_nsec = cpu_to_be32(tv.tv_nsec); in gfs2_write_log_header()
865 lh->lh_sec = cpu_to_be64(tv.tv_sec); in gfs2_write_log_header()
877 lh->lh_addr = cpu_to_be64(dblock); in gfs2_write_log_header()
878 lh->lh_jinode = cpu_to_be64(GFS2_I(jd->jd_inode)->i_no_addr); in gfs2_write_log_header()
884 lh->lh_statfs_addr = in gfs2_write_log_header()
886 lh->lh_quota_addr = in gfs2_write_log_header()
890 lh->lh_local_total = cpu_to_be64(l_sc->sc_total); in gfs2_write_log_header()
891 lh->lh_local_free = cpu_to_be64(l_sc->sc_free); in gfs2_write_log_header()
892 lh->lh_local_dinodes = cpu_to_be64(l_sc->sc_dinodes); in gfs2_write_log_header()
898 crc = crc32c(~0, (void *)lh + LH_V1_SIZE + 4, in gfs2_write_log_header()
900 lh->lh_crc = cpu_to_be32(crc); in gfs2_write_log_header()