Lines Matching refs:head
57 struct list_head *head = &jd->jd_revoke_list; in gfs2_revoke_add() local
60 list_for_each_entry(iter, head, rr_list) { in gfs2_revoke_add()
78 list_add(&rr->rr_list, head); in gfs2_revoke_add()
108 struct list_head *head = &jd->jd_revoke_list; in gfs2_revoke_clean() local
111 while (!list_empty(head)) { in gfs2_revoke_clean()
112 rr = list_first_entry(head, struct gfs2_revoke_replay, rr_list); in gfs2_revoke_clean()
119 unsigned int blkno, struct gfs2_log_header_host *head) in __get_log_header() argument
140 head->lh_sequence = be64_to_cpu(lh->lh_sequence); in __get_log_header()
141 head->lh_flags = be32_to_cpu(lh->lh_flags); in __get_log_header()
142 head->lh_tail = be32_to_cpu(lh->lh_tail); in __get_log_header()
143 head->lh_blkno = be32_to_cpu(lh->lh_blkno); in __get_log_header()
145 head->lh_local_total = be64_to_cpu(lh->lh_local_total); in __get_log_header()
146 head->lh_local_free = be64_to_cpu(lh->lh_local_free); in __get_log_header()
147 head->lh_local_dinodes = be64_to_cpu(lh->lh_local_dinodes); in __get_log_header()
166 struct gfs2_log_header_host *head) in get_log_header() argument
177 blk, head); in get_log_header()
263 struct gfs2_log_header_host *head) in clean_journal() argument
266 u32 lblock = head->lh_blkno; in clean_journal()
269 gfs2_write_log_header(sdp, jd, head->lh_sequence + 1, 0, lblock, in clean_journal()
308 struct gfs2_log_header_host *head, in update_statfs_inode() argument
326 if (head) { /* Update the master statfs inode */ in update_statfs_inode()
328 sc.sc_total += head->lh_local_total; in update_statfs_inode()
329 sc.sc_free += head->lh_local_free; in update_statfs_inode()
330 sc.sc_dinodes += head->lh_local_dinodes; in update_statfs_inode()
336 sc.sc_free, sc.sc_dinodes, head->lh_local_total, in update_statfs_inode()
337 head->lh_local_free, head->lh_local_dinodes); in update_statfs_inode()
377 struct gfs2_log_header_host *head) in recover_local_statfs() argument
382 if (!head->lh_local_total && !head->lh_local_free in recover_local_statfs()
383 && !head->lh_local_dinodes) /* No change */ in recover_local_statfs()
388 error = update_statfs_inode(jd, head, sdp->sd_statfs_inode); in recover_local_statfs()
406 struct gfs2_log_header_host head; in gfs2_recover_func() local
460 error = gfs2_find_jhead(jd, &head, true); in gfs2_recover_func()
467 if (!(head.lh_flags & GFS2_LOG_HEAD_UNMOUNT)) { in gfs2_recover_func()
504 jd->jd_jid, head.lh_tail, head.lh_blkno); in gfs2_recover_func()
511 lops_before_scan(jd, &head, pass); in gfs2_recover_func()
512 error = foreach_descriptor(jd, head.lh_tail, in gfs2_recover_func()
513 head.lh_blkno, pass); in gfs2_recover_func()
521 recover_local_statfs(jd, &head); in gfs2_recover_func()
522 clean_journal(jd, &head); in gfs2_recover_func()