Lines Matching refs:jd

520 static void buf_lo_before_scan(struct gfs2_jdesc *jd,  in buf_lo_before_scan()  argument
526 jd->jd_found_blocks = 0; in buf_lo_before_scan()
527 jd->jd_replayed_blocks = 0; in buf_lo_before_scan()
530 static int buf_lo_scan_elements(struct gfs2_jdesc *jd, unsigned int start, in buf_lo_scan_elements() argument
534 struct gfs2_inode *ip = GFS2_I(jd->jd_inode); in buf_lo_scan_elements()
535 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); in buf_lo_scan_elements()
550 jd->jd_found_blocks++; in buf_lo_scan_elements()
552 if (gfs2_revoke_check(jd, blkno, start)) in buf_lo_scan_elements()
555 error = gfs2_replay_read_block(jd, start, &bh_log); in buf_lo_scan_elements()
573 jd->jd_replayed_blocks++; in buf_lo_scan_elements()
601 static void buf_lo_after_scan(struct gfs2_jdesc *jd, int error, int pass) in buf_lo_after_scan() argument
603 struct gfs2_inode *ip = GFS2_I(jd->jd_inode); in buf_lo_after_scan()
604 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); in buf_lo_after_scan()
616 jd->jd_jid, jd->jd_replayed_blocks, jd->jd_found_blocks); in buf_lo_after_scan()
675 static void revoke_lo_before_scan(struct gfs2_jdesc *jd, in revoke_lo_before_scan() argument
681 jd->jd_found_revokes = 0; in revoke_lo_before_scan()
682 jd->jd_replay_tail = head->lh_tail; in revoke_lo_before_scan()
685 static int revoke_lo_scan_elements(struct gfs2_jdesc *jd, unsigned int start, in revoke_lo_scan_elements() argument
689 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); in revoke_lo_scan_elements()
704 error = gfs2_replay_read_block(jd, start, &bh); in revoke_lo_scan_elements()
714 error = gfs2_revoke_add(jd, blkno, start); in revoke_lo_scan_elements()
720 jd->jd_found_revokes++; in revoke_lo_scan_elements()
735 static void revoke_lo_after_scan(struct gfs2_jdesc *jd, int error, int pass) in revoke_lo_after_scan() argument
737 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); in revoke_lo_after_scan()
740 gfs2_revoke_clean(jd); in revoke_lo_after_scan()
747 jd->jd_jid, jd->jd_found_revokes); in revoke_lo_after_scan()
749 gfs2_revoke_clean(jd); in revoke_lo_after_scan()
767 static int databuf_lo_scan_elements(struct gfs2_jdesc *jd, unsigned int start, in databuf_lo_scan_elements() argument
771 struct gfs2_inode *ip = GFS2_I(jd->jd_inode); in databuf_lo_scan_elements()
772 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); in databuf_lo_scan_elements()
788 jd->jd_found_blocks++; in databuf_lo_scan_elements()
790 if (gfs2_revoke_check(jd, blkno, start)) in databuf_lo_scan_elements()
793 error = gfs2_replay_read_block(jd, start, &bh_log); in databuf_lo_scan_elements()
810 jd->jd_replayed_blocks++; in databuf_lo_scan_elements()
818 static void databuf_lo_after_scan(struct gfs2_jdesc *jd, int error, int pass) in databuf_lo_after_scan() argument
820 struct gfs2_inode *ip = GFS2_I(jd->jd_inode); in databuf_lo_after_scan()
821 struct gfs2_sbd *sdp = GFS2_SB(jd->jd_inode); in databuf_lo_after_scan()
834 jd->jd_jid, jd->jd_replayed_blocks, jd->jd_found_blocks); in databuf_lo_after_scan()