Lines Matching refs:jd

513 static void buf_lo_before_scan(struct gfs2_jdesc *jd,  in buf_lo_before_scan()  argument
519 jd->jd_found_blocks = 0; in buf_lo_before_scan()
520 jd->jd_replayed_blocks = 0; in buf_lo_before_scan()
523 static int buf_lo_scan_elements(struct gfs2_jdesc *jd, unsigned int start, in buf_lo_scan_elements() argument
527 struct gfs2_inode *ip = GFS2_I(jd->jd_inode); in buf_lo_scan_elements()
528 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); in buf_lo_scan_elements()
543 jd->jd_found_blocks++; in buf_lo_scan_elements()
545 if (gfs2_revoke_check(jd, blkno, start)) in buf_lo_scan_elements()
548 error = gfs2_replay_read_block(jd, start, &bh_log); in buf_lo_scan_elements()
566 jd->jd_replayed_blocks++; in buf_lo_scan_elements()
594 static void buf_lo_after_scan(struct gfs2_jdesc *jd, int error, int pass) in buf_lo_after_scan() argument
596 struct gfs2_inode *ip = GFS2_I(jd->jd_inode); in buf_lo_after_scan()
597 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); in buf_lo_after_scan()
609 jd->jd_jid, jd->jd_replayed_blocks, jd->jd_found_blocks); in buf_lo_after_scan()
668 static void revoke_lo_before_scan(struct gfs2_jdesc *jd, in revoke_lo_before_scan() argument
674 jd->jd_found_revokes = 0; in revoke_lo_before_scan()
675 jd->jd_replay_tail = head->lh_tail; in revoke_lo_before_scan()
678 static int revoke_lo_scan_elements(struct gfs2_jdesc *jd, unsigned int start, in revoke_lo_scan_elements() argument
682 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); in revoke_lo_scan_elements()
697 error = gfs2_replay_read_block(jd, start, &bh); in revoke_lo_scan_elements()
707 error = gfs2_revoke_add(jd, blkno, start); in revoke_lo_scan_elements()
713 jd->jd_found_revokes++; in revoke_lo_scan_elements()
728 static void revoke_lo_after_scan(struct gfs2_jdesc *jd, int error, int pass) in revoke_lo_after_scan() argument
730 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); in revoke_lo_after_scan()
733 gfs2_revoke_clean(jd); in revoke_lo_after_scan()
740 jd->jd_jid, jd->jd_found_revokes); in revoke_lo_after_scan()
742 gfs2_revoke_clean(jd); in revoke_lo_after_scan()
760 static int databuf_lo_scan_elements(struct gfs2_jdesc *jd, unsigned int start, in databuf_lo_scan_elements() argument
764 struct gfs2_inode *ip = GFS2_I(jd->jd_inode); in databuf_lo_scan_elements()
765 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); in databuf_lo_scan_elements()
781 jd->jd_found_blocks++; in databuf_lo_scan_elements()
783 if (gfs2_revoke_check(jd, blkno, start)) in databuf_lo_scan_elements()
786 error = gfs2_replay_read_block(jd, start, &bh_log); in databuf_lo_scan_elements()
803 jd->jd_replayed_blocks++; in databuf_lo_scan_elements()
811 static void databuf_lo_after_scan(struct gfs2_jdesc *jd, int error, int pass) in databuf_lo_after_scan() argument
813 struct gfs2_inode *ip = GFS2_I(jd->jd_inode); in databuf_lo_after_scan()
814 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); in databuf_lo_after_scan()
827 jd->jd_jid, jd->jd_replayed_blocks, jd->jd_found_blocks); in databuf_lo_after_scan()