Lines Matching refs:jd

516 static void buf_lo_before_scan(struct gfs2_jdesc *jd,  in buf_lo_before_scan()  argument
522 jd->jd_found_blocks = 0; in buf_lo_before_scan()
523 jd->jd_replayed_blocks = 0; in buf_lo_before_scan()
526 static int buf_lo_scan_elements(struct gfs2_jdesc *jd, unsigned int start, in buf_lo_scan_elements() argument
530 struct gfs2_inode *ip = GFS2_I(jd->jd_inode); in buf_lo_scan_elements()
531 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); in buf_lo_scan_elements()
541 gfs2_replay_incr_blk(jd, &start); in buf_lo_scan_elements()
543 for (; blks; gfs2_replay_incr_blk(jd, &start), blks--) { in buf_lo_scan_elements()
546 jd->jd_found_blocks++; in buf_lo_scan_elements()
548 if (gfs2_revoke_check(jd, blkno, start)) in buf_lo_scan_elements()
551 error = gfs2_replay_read_block(jd, start, &bh_log); in buf_lo_scan_elements()
569 jd->jd_replayed_blocks++; in buf_lo_scan_elements()
597 static void buf_lo_after_scan(struct gfs2_jdesc *jd, int error, int pass) in buf_lo_after_scan() argument
599 struct gfs2_inode *ip = GFS2_I(jd->jd_inode); in buf_lo_after_scan()
600 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); in buf_lo_after_scan()
612 jd->jd_jid, jd->jd_replayed_blocks, jd->jd_found_blocks); in buf_lo_after_scan()
671 static void revoke_lo_before_scan(struct gfs2_jdesc *jd, in revoke_lo_before_scan() argument
677 jd->jd_found_revokes = 0; in revoke_lo_before_scan()
678 jd->jd_replay_tail = head->lh_tail; in revoke_lo_before_scan()
681 static int revoke_lo_scan_elements(struct gfs2_jdesc *jd, unsigned int start, in revoke_lo_scan_elements() argument
685 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); in revoke_lo_scan_elements()
699 for (; blks; gfs2_replay_incr_blk(jd, &start), blks--) { in revoke_lo_scan_elements()
700 error = gfs2_replay_read_block(jd, start, &bh); in revoke_lo_scan_elements()
710 error = gfs2_revoke_add(jd, blkno, start); in revoke_lo_scan_elements()
716 jd->jd_found_revokes++; in revoke_lo_scan_elements()
731 static void revoke_lo_after_scan(struct gfs2_jdesc *jd, int error, int pass) in revoke_lo_after_scan() argument
733 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); in revoke_lo_after_scan()
736 gfs2_revoke_clean(jd); in revoke_lo_after_scan()
743 jd->jd_jid, jd->jd_found_revokes); in revoke_lo_after_scan()
745 gfs2_revoke_clean(jd); in revoke_lo_after_scan()
763 static int databuf_lo_scan_elements(struct gfs2_jdesc *jd, unsigned int start, in databuf_lo_scan_elements() argument
767 struct gfs2_inode *ip = GFS2_I(jd->jd_inode); in databuf_lo_scan_elements()
778 gfs2_replay_incr_blk(jd, &start); in databuf_lo_scan_elements()
779 for (; blks; gfs2_replay_incr_blk(jd, &start), blks--) { in databuf_lo_scan_elements()
783 jd->jd_found_blocks++; in databuf_lo_scan_elements()
785 if (gfs2_revoke_check(jd, blkno, start)) in databuf_lo_scan_elements()
788 error = gfs2_replay_read_block(jd, start, &bh_log); in databuf_lo_scan_elements()
805 jd->jd_replayed_blocks++; in databuf_lo_scan_elements()
813 static void databuf_lo_after_scan(struct gfs2_jdesc *jd, int error, int pass) in databuf_lo_after_scan() argument
815 struct gfs2_inode *ip = GFS2_I(jd->jd_inode); in databuf_lo_after_scan()
816 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); in databuf_lo_after_scan()
829 jd->jd_jid, jd->jd_replayed_blocks, jd->jd_found_blocks); in databuf_lo_after_scan()