Lines Matching refs:lh
835 struct gfs2_log_header *lh;
847 lh = page_address(page);
848 clear_page(lh);
850 lh->lh_header.mh_magic = cpu_to_be32(GFS2_MAGIC);
851 lh->lh_header.mh_type = cpu_to_be32(GFS2_METATYPE_LH);
852 lh->lh_header.__pad0 = cpu_to_be64(0);
853 lh->lh_header.mh_format = cpu_to_be32(GFS2_FORMAT_LH);
854 lh->lh_header.mh_jid = cpu_to_be32(sdp->sd_jdesc->jd_jid);
855 lh->lh_sequence = cpu_to_be64(seq);
856 lh->lh_flags = cpu_to_be32(flags);
857 lh->lh_tail = cpu_to_be32(tail);
858 lh->lh_blkno = cpu_to_be32(lblock);
859 hash = ~crc32(~0, lh, LH_V1_SIZE);
860 lh->lh_hash = cpu_to_be32(hash);
863 lh->lh_nsec = cpu_to_be32(tv.tv_nsec);
864 lh->lh_sec = cpu_to_be64(tv.tv_sec);
876 lh->lh_addr = cpu_to_be64(dblock);
877 lh->lh_jinode = cpu_to_be64(GFS2_I(jd->jd_inode)->i_no_addr);
883 lh->lh_statfs_addr =
885 lh->lh_quota_addr =
889 lh->lh_local_total = cpu_to_be64(l_sc->sc_total);
890 lh->lh_local_free = cpu_to_be64(l_sc->sc_free);
891 lh->lh_local_dinodes = cpu_to_be64(l_sc->sc_dinodes);
897 crc = crc32c(~0, (void *)lh + LH_V1_SIZE + 4,
899 lh->lh_crc = cpu_to_be32(crc);