0001
0002
0003
0004
0005
0006
0007 #ifndef __RECOVERY_DOT_H__
0008 #define __RECOVERY_DOT_H__
0009
0010 #include "incore.h"
0011
0012 extern struct workqueue_struct *gfs_recovery_wq;
0013
0014 static inline void gfs2_replay_incr_blk(struct gfs2_jdesc *jd, u32 *blk)
0015 {
0016 if (++*blk == jd->jd_blocks)
0017 *blk = 0;
0018 }
0019
0020 extern int gfs2_replay_read_block(struct gfs2_jdesc *jd, unsigned int blk,
0021 struct buffer_head **bh);
0022
0023 extern int gfs2_revoke_add(struct gfs2_jdesc *jd, u64 blkno, unsigned int where);
0024 extern int gfs2_revoke_check(struct gfs2_jdesc *jd, u64 blkno, unsigned int where);
0025 extern void gfs2_revoke_clean(struct gfs2_jdesc *jd);
0026
0027 extern int gfs2_recover_journal(struct gfs2_jdesc *gfs2_jd, bool wait);
0028 extern void gfs2_recover_func(struct work_struct *work);
0029 extern int __get_log_header(struct gfs2_sbd *sdp,
0030 const struct gfs2_log_header *lh, unsigned int blkno,
0031 struct gfs2_log_header_host *head);
0032
0033 #endif
0034