Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
recovery.c File Reference
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/spinlock.h>
#include <linux/completion.h>
#include <linux/buffer_head.h>
#include <linux/gfs2_ondisk.h>
#include <linux/crc32.h>
#include "gfs2.h"
#include "incore.h"
#include "bmap.h"
#include "glock.h"
#include "glops.h"
#include "lops.h"
#include "meta_io.h"
#include "recovery.h"
#include "super.h"
#include "util.h"
#include "dir.h"

Go to the source code of this file.

Functions

int gfs2_replay_read_block (struct gfs2_jdesc *jd, unsigned int blk, struct buffer_head **bh)
 
int gfs2_revoke_add (struct gfs2_sbd *sdp, u64 blkno, unsigned int where)
 
int gfs2_revoke_check (struct gfs2_sbd *sdp, u64 blkno, unsigned int where)
 
void gfs2_revoke_clean (struct gfs2_sbd *sdp)
 
int gfs2_find_jhead (struct gfs2_jdesc *jd, struct gfs2_log_header_host *head)
 
void gfs2_recover_func (struct work_struct *work)
 
int gfs2_recover_journal (struct gfs2_jdesc *jd, bool wait)
 

Variables

struct workqueue_structgfs_recovery_wq
 

Function Documentation

int gfs2_find_jhead ( struct gfs2_jdesc jd,
struct gfs2_log_header_host head 
)

gfs2_find_jhead - find the head of a log : the journal : the log descriptor for the head of the log is returned here

Do a binary search of a journal and find the valid log entry with the highest sequence number. (i.e. the log head)

Returns: errno

Definition at line 263 of file recovery.c.

void gfs2_recover_func ( struct work_struct work)

Definition at line 451 of file recovery.c.

int gfs2_recover_journal ( struct gfs2_jdesc jd,
bool  wait 
)

Definition at line 600 of file recovery.c.

int gfs2_replay_read_block ( struct gfs2_jdesc jd,
unsigned int  blk,
struct buffer_head **  bh 
)

Definition at line 32 of file recovery.c.

int gfs2_revoke_add ( struct gfs2_sbd sdp,
u64  blkno,
unsigned int  where 
)

Definition at line 55 of file recovery.c.

int gfs2_revoke_check ( struct gfs2_sbd sdp,
u64  blkno,
unsigned int  where 
)

Definition at line 84 of file recovery.c.

void gfs2_revoke_clean ( struct gfs2_sbd sdp)

Definition at line 108 of file recovery.c.

Variable Documentation

struct workqueue_struct* gfs_recovery_wq

Definition at line 30 of file recovery.c.