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()
745 static void buf_lo_before_scan(struct gfs2_jdesc *jd, in buf_lo_before_scan() argument
751 jd->jd_found_blocks = 0; in buf_lo_before_scan()
752 jd->jd_replayed_blocks = 0; in buf_lo_before_scan()
755 static int buf_lo_scan_elements(struct gfs2_jdesc *jd, u32 start, in buf_lo_scan_elements() argument
759 struct gfs2_inode *ip = GFS2_I(jd->jd_inode); in buf_lo_scan_elements()
760 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); in buf_lo_scan_elements()
770 gfs2_replay_incr_blk(jd, &start); in buf_lo_scan_elements()
772 for (; blks; gfs2_replay_incr_blk(jd, &start), blks--) { in buf_lo_scan_elements()
775 jd->jd_found_blocks++; in buf_lo_scan_elements()
777 if (gfs2_revoke_check(jd, blkno, start)) in buf_lo_scan_elements()
780 error = gfs2_replay_read_block(jd, start, &bh_log); in buf_lo_scan_elements()
816 jd->jd_replayed_blocks++; in buf_lo_scan_elements()
822 static void buf_lo_after_scan(struct gfs2_jdesc *jd, int error, int pass) in buf_lo_after_scan() argument
824 struct gfs2_inode *ip = GFS2_I(jd->jd_inode); in buf_lo_after_scan()
825 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); in buf_lo_after_scan()
837 jd->jd_jid, jd->jd_replayed_blocks, jd->jd_found_blocks); in buf_lo_after_scan()
895 static void revoke_lo_before_scan(struct gfs2_jdesc *jd, in revoke_lo_before_scan() argument
901 jd->jd_found_revokes = 0; in revoke_lo_before_scan()
902 jd->jd_replay_tail = head->lh_tail; in revoke_lo_before_scan()
905 static int revoke_lo_scan_elements(struct gfs2_jdesc *jd, u32 start, in revoke_lo_scan_elements() argument
909 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); in revoke_lo_scan_elements()
923 for (; blks; gfs2_replay_incr_blk(jd, &start), blks--) { in revoke_lo_scan_elements()
924 error = gfs2_replay_read_block(jd, start, &bh); in revoke_lo_scan_elements()
934 error = gfs2_revoke_add(jd, blkno, start); in revoke_lo_scan_elements()
940 jd->jd_found_revokes++; in revoke_lo_scan_elements()
955 static void revoke_lo_after_scan(struct gfs2_jdesc *jd, int error, int pass) in revoke_lo_after_scan() argument
957 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); in revoke_lo_after_scan()
960 gfs2_revoke_clean(jd); in revoke_lo_after_scan()
967 jd->jd_jid, jd->jd_found_revokes); in revoke_lo_after_scan()
969 gfs2_revoke_clean(jd); in revoke_lo_after_scan()
987 static int databuf_lo_scan_elements(struct gfs2_jdesc *jd, u32 start, in databuf_lo_scan_elements() argument
991 struct gfs2_inode *ip = GFS2_I(jd->jd_inode); in databuf_lo_scan_elements()
1002 gfs2_replay_incr_blk(jd, &start); in databuf_lo_scan_elements()
1003 for (; blks; gfs2_replay_incr_blk(jd, &start), blks--) { in databuf_lo_scan_elements()
1007 jd->jd_found_blocks++; in databuf_lo_scan_elements()
1009 if (gfs2_revoke_check(jd, blkno, start)) in databuf_lo_scan_elements()
1012 error = gfs2_replay_read_block(jd, start, &bh_log); in databuf_lo_scan_elements()
1029 jd->jd_replayed_blocks++; in databuf_lo_scan_elements()
1037 static void databuf_lo_after_scan(struct gfs2_jdesc *jd, int error, int pass) in databuf_lo_after_scan() argument
1039 struct gfs2_inode *ip = GFS2_I(jd->jd_inode); in databuf_lo_after_scan()
1040 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); in databuf_lo_after_scan()
1053 jd->jd_jid, jd->jd_replayed_blocks, jd->jd_found_blocks); in databuf_lo_after_scan()