^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) /* SPDX-License-Identifier: GPL-2.0-only */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) * Copyright (C) 2004-2006 Red Hat, Inc. All rights reserved.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) #ifndef __RECOVERY_DOT_H__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) #define __RECOVERY_DOT_H__
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) #include "incore.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) extern struct workqueue_struct *gfs_recovery_wq;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) static inline void gfs2_replay_incr_blk(struct gfs2_jdesc *jd, u32 *blk)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) if (++*blk == jd->jd_blocks)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) *blk = 0;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) extern int gfs2_replay_read_block(struct gfs2_jdesc *jd, unsigned int blk,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) struct buffer_head **bh);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) extern int gfs2_revoke_add(struct gfs2_jdesc *jd, u64 blkno, unsigned int where);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) extern int gfs2_revoke_check(struct gfs2_jdesc *jd, u64 blkno, unsigned int where);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) extern void gfs2_revoke_clean(struct gfs2_jdesc *jd);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) extern int gfs2_recover_journal(struct gfs2_jdesc *gfs2_jd, bool wait);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) extern void gfs2_recover_func(struct work_struct *work);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) extern int __get_log_header(struct gfs2_sbd *sdp,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) const struct gfs2_log_header *lh, unsigned int blkno,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) struct gfs2_log_header_host *head);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) #endif /* __RECOVERY_DOT_H__ */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34)