Lines Matching refs:head
57 struct list_head *head = &jd->jd_revoke_list; in gfs2_revoke_add() local
61 list_for_each_entry(rr, head, rr_list) { in gfs2_revoke_add()
79 list_add(&rr->rr_list, head); in gfs2_revoke_add()
110 struct list_head *head = &jd->jd_revoke_list; in gfs2_revoke_clean() local
113 while (!list_empty(head)) { in gfs2_revoke_clean()
114 rr = list_first_entry(head, struct gfs2_revoke_replay, rr_list); in gfs2_revoke_clean()
121 unsigned int blkno, struct gfs2_log_header_host *head) in __get_log_header() argument
142 head->lh_sequence = be64_to_cpu(lh->lh_sequence); in __get_log_header()
143 head->lh_flags = be32_to_cpu(lh->lh_flags); in __get_log_header()
144 head->lh_tail = be32_to_cpu(lh->lh_tail); in __get_log_header()
145 head->lh_blkno = be32_to_cpu(lh->lh_blkno); in __get_log_header()
147 head->lh_local_total = be64_to_cpu(lh->lh_local_total); in __get_log_header()
148 head->lh_local_free = be64_to_cpu(lh->lh_local_free); in __get_log_header()
149 head->lh_local_dinodes = be64_to_cpu(lh->lh_local_dinodes); in __get_log_header()
168 struct gfs2_log_header_host *head) in get_log_header() argument
179 blk, head); in get_log_header()
265 struct gfs2_log_header_host *head) in clean_journal() argument
268 u32 lblock = head->lh_blkno; in clean_journal()
271 gfs2_write_log_header(sdp, jd, head->lh_sequence + 1, 0, lblock, in clean_journal()
310 struct gfs2_log_header_host *head, in update_statfs_inode() argument
328 if (head) { /* Update the master statfs inode */ in update_statfs_inode()
330 sc.sc_total += head->lh_local_total; in update_statfs_inode()
331 sc.sc_free += head->lh_local_free; in update_statfs_inode()
332 sc.sc_dinodes += head->lh_local_dinodes; in update_statfs_inode()
338 sc.sc_free, sc.sc_dinodes, head->lh_local_total, in update_statfs_inode()
339 head->lh_local_free, head->lh_local_dinodes); in update_statfs_inode()
379 struct gfs2_log_header_host *head) in recover_local_statfs() argument
384 if (!head->lh_local_total && !head->lh_local_free in recover_local_statfs()
385 && !head->lh_local_dinodes) /* No change */ in recover_local_statfs()
390 error = update_statfs_inode(jd, head, sdp->sd_statfs_inode); in recover_local_statfs()
408 struct gfs2_log_header_host head; in gfs2_recover_func() local
462 error = gfs2_find_jhead(jd, &head, true); in gfs2_recover_func()
469 if (!(head.lh_flags & GFS2_LOG_HEAD_UNMOUNT)) { in gfs2_recover_func()
506 jd->jd_jid, head.lh_tail, head.lh_blkno); in gfs2_recover_func()
513 lops_before_scan(jd, &head, pass); in gfs2_recover_func()
514 error = foreach_descriptor(jd, head.lh_tail, in gfs2_recover_func()
515 head.lh_blkno, pass); in gfs2_recover_func()
523 recover_local_statfs(jd, &head); in gfs2_recover_func()
524 clean_journal(jd, &head); in gfs2_recover_func()