Blame view

fs/gfs2/recovery.h 1.06 KB
7336d0e65   Thomas Gleixner   treewide: Replace...
1
  /* SPDX-License-Identifier: GPL-2.0-only */
b3b94faa5   David Teigland   [GFS2] The core o...
2
3
  /*
   * Copyright (C) Sistina Software, Inc.  1997-2003 All rights reserved.
3a8a9a103   Steven Whitehouse   [GFS2] Update cop...
4
   * Copyright (C) 2004-2006 Red Hat, Inc.  All rights reserved.
b3b94faa5   David Teigland   [GFS2] The core o...
5
6
7
8
   */
  
  #ifndef __RECOVERY_DOT_H__
  #define __RECOVERY_DOT_H__
f2f7ba523   Steven Whitehouse   [GFS2] Make heade...
9
  #include "incore.h"
6ecd7c2dd   Tejun Heo   gfs2: use workque...
10
  extern struct workqueue_struct *gfs_recovery_wq;
7c70b8969   Bob Peterson   gfs2: clean_journ...
11
  static inline void gfs2_replay_incr_blk(struct gfs2_jdesc *jd, u32 *blk)
b3b94faa5   David Teigland   [GFS2] The core o...
12
  {
e1cb6be9e   Bob Peterson   GFS2: Fix gfs2_re...
13
  	if (++*blk == jd->jd_blocks)
b3b94faa5   David Teigland   [GFS2] The core o...
14
15
  	        *blk = 0;
  }
9ac1b4d9b   Steven Whitehouse   GFS2: Move gfs2_r...
16
  extern int gfs2_replay_read_block(struct gfs2_jdesc *jd, unsigned int blk,
b3b94faa5   David Teigland   [GFS2] The core o...
17
  			   struct buffer_head **bh);
a17d758b6   Bob Peterson   GFS2: Move recove...
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   David Teigland   [GFS2] The core o...
21

6ecd7c2dd   Tejun Heo   gfs2: use workque...
22
23
  extern int gfs2_recover_journal(struct gfs2_jdesc *gfs2_jd, bool wait);
  extern void gfs2_recover_func(struct work_struct *work);
40e0e61e3   Abhi Das   gfs2: add a helpe...
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   David Teigland   [GFS2] The core o...
27
28
  
  #endif /* __RECOVERY_DOT_H__ */