Lines Matching full:jd

142 u64 gfs2_log_bmap(struct gfs2_jdesc *jd, unsigned int lblock)  in gfs2_log_bmap()  argument
146 list_for_each_entry(je, &jd->extent_list, list) { in gfs2_log_bmap()
412 * @jd: The journal descriptor
418 static bool gfs2_jhead_pg_srch(struct gfs2_jdesc *jd, in gfs2_jhead_pg_srch() argument
422 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); in gfs2_jhead_pg_srch()
444 * @jd: The journal descriptor
461 static void gfs2_jhead_process_page(struct gfs2_jdesc *jd, unsigned long index, in gfs2_jhead_process_page() argument
467 page = find_get_page(jd->jd_inode->i_mapping, index); in gfs2_jhead_process_page()
474 *done = gfs2_jhead_pg_srch(jd, head, page); in gfs2_jhead_process_page()
496 * @jd: The journal descriptor
504 int gfs2_find_jhead(struct gfs2_jdesc *jd, struct gfs2_log_header_host *head, in gfs2_find_jhead() argument
507 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); in gfs2_find_jhead()
508 struct address_space *mapping = jd->jd_inode->i_mapping; in gfs2_find_jhead()
522 if (list_empty(&jd->extent_list)) in gfs2_find_jhead()
523 gfs2_map_journal_extents(sdp, jd); in gfs2_find_jhead()
526 list_for_each_entry(je, &jd->extent_list, list) { in gfs2_find_jhead()
577 gfs2_jhead_process_page(jd, blocks_read >> shift, head, &done); in gfs2_find_jhead()
588 gfs2_jhead_process_page(jd, blocks_read >> shift, head, &done); in gfs2_find_jhead()
744 static void buf_lo_before_scan(struct gfs2_jdesc *jd, in buf_lo_before_scan() argument
750 jd->jd_found_blocks = 0; in buf_lo_before_scan()
751 jd->jd_replayed_blocks = 0; in buf_lo_before_scan()
754 static int buf_lo_scan_elements(struct gfs2_jdesc *jd, u32 start, in buf_lo_scan_elements() argument
758 struct gfs2_inode *ip = GFS2_I(jd->jd_inode); in buf_lo_scan_elements()
759 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); in buf_lo_scan_elements()
769 gfs2_replay_incr_blk(jd, &start); in buf_lo_scan_elements()
771 for (; blks; gfs2_replay_incr_blk(jd, &start), blks--) { in buf_lo_scan_elements()
774 jd->jd_found_blocks++; in buf_lo_scan_elements()
776 if (gfs2_revoke_check(jd, blkno, start)) in buf_lo_scan_elements()
779 error = gfs2_replay_read_block(jd, start, &bh_log); in buf_lo_scan_elements()
815 jd->jd_replayed_blocks++; in buf_lo_scan_elements()
821 static void buf_lo_after_scan(struct gfs2_jdesc *jd, int error, int pass) in buf_lo_after_scan() argument
823 struct gfs2_inode *ip = GFS2_I(jd->jd_inode); in buf_lo_after_scan()
824 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); in buf_lo_after_scan()
836 jd->jd_jid, jd->jd_replayed_blocks, jd->jd_found_blocks); in buf_lo_after_scan()
894 static void revoke_lo_before_scan(struct gfs2_jdesc *jd, in revoke_lo_before_scan() argument
900 jd->jd_found_revokes = 0; in revoke_lo_before_scan()
901 jd->jd_replay_tail = head->lh_tail; in revoke_lo_before_scan()
904 static int revoke_lo_scan_elements(struct gfs2_jdesc *jd, u32 start, in revoke_lo_scan_elements() argument
908 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); in revoke_lo_scan_elements()
922 for (; blks; gfs2_replay_incr_blk(jd, &start), blks--) { in revoke_lo_scan_elements()
923 error = gfs2_replay_read_block(jd, start, &bh); in revoke_lo_scan_elements()
933 error = gfs2_revoke_add(jd, blkno, start); in revoke_lo_scan_elements()
939 jd->jd_found_revokes++; in revoke_lo_scan_elements()
954 static void revoke_lo_after_scan(struct gfs2_jdesc *jd, int error, int pass) in revoke_lo_after_scan() argument
956 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); in revoke_lo_after_scan()
959 gfs2_revoke_clean(jd); in revoke_lo_after_scan()
966 jd->jd_jid, jd->jd_found_revokes); in revoke_lo_after_scan()
968 gfs2_revoke_clean(jd); in revoke_lo_after_scan()
986 static int databuf_lo_scan_elements(struct gfs2_jdesc *jd, u32 start, in databuf_lo_scan_elements() argument
990 struct gfs2_inode *ip = GFS2_I(jd->jd_inode); in databuf_lo_scan_elements()
1001 gfs2_replay_incr_blk(jd, &start); in databuf_lo_scan_elements()
1002 for (; blks; gfs2_replay_incr_blk(jd, &start), blks--) { in databuf_lo_scan_elements()
1006 jd->jd_found_blocks++; in databuf_lo_scan_elements()
1008 if (gfs2_revoke_check(jd, blkno, start)) in databuf_lo_scan_elements()
1011 error = gfs2_replay_read_block(jd, start, &bh_log); in databuf_lo_scan_elements()
1028 jd->jd_replayed_blocks++; in databuf_lo_scan_elements()
1036 static void databuf_lo_after_scan(struct gfs2_jdesc *jd, int error, int pass) in databuf_lo_after_scan() argument
1038 struct gfs2_inode *ip = GFS2_I(jd->jd_inode); in databuf_lo_after_scan()
1039 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); in databuf_lo_after_scan()
1052 jd->jd_jid, jd->jd_replayed_blocks, jd->jd_found_blocks); in databuf_lo_after_scan()