Blame view
fs/gfs2/recovery.h
1.06 KB
7336d0e65
|
1 |
/* SPDX-License-Identifier: GPL-2.0-only */ |
b3b94faa5
|
2 3 |
/* * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved. |
3a8a9a103
|
4 |
* Copyright (C) 2004-2006 Red Hat, Inc. All rights reserved. |
b3b94faa5
|
5 6 7 8 |
*/ #ifndef __RECOVERY_DOT_H__ #define __RECOVERY_DOT_H__ |
f2f7ba523
|
9 |
#include "incore.h" |
6ecd7c2dd
|
10 |
extern struct workqueue_struct *gfs_recovery_wq; |
7c70b8969
|
11 |
static inline void gfs2_replay_incr_blk(struct gfs2_jdesc *jd, u32 *blk) |
b3b94faa5
|
12 |
{ |
e1cb6be9e
|
13 |
if (++*blk == jd->jd_blocks) |
b3b94faa5
|
14 15 |
*blk = 0; } |
9ac1b4d9b
|
16 |
extern int gfs2_replay_read_block(struct gfs2_jdesc *jd, unsigned int blk, |
b3b94faa5
|
17 |
struct buffer_head **bh); |
a17d758b6
|
18 19 20 |
extern int gfs2_revoke_add(struct gfs2_jdesc *jd, u64 blkno, unsigned int where); extern int gfs2_revoke_check(struct gfs2_jdesc *jd, u64 blkno, unsigned int where); extern void gfs2_revoke_clean(struct gfs2_jdesc *jd); |
b3b94faa5
|
21 |
|
6ecd7c2dd
|
22 23 |
extern int gfs2_recover_journal(struct gfs2_jdesc *gfs2_jd, bool wait); extern void gfs2_recover_func(struct work_struct *work); |
40e0e61e3
|
24 25 26 |
extern int __get_log_header(struct gfs2_sbd *sdp, const struct gfs2_log_header *lh, unsigned int blkno, struct gfs2_log_header_host *head); |
b3b94faa5
|
27 28 |
#endif /* __RECOVERY_DOT_H__ */ |