Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
trans.c File Reference
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/spinlock.h>
#include <linux/completion.h>
#include <linux/buffer_head.h>
#include <linux/kallsyms.h>
#include <linux/gfs2_ondisk.h>
#include "gfs2.h"
#include "incore.h"
#include "glock.h"
#include "log.h"
#include "lops.h"
#include "meta_io.h"
#include "trans.h"
#include "util.h"
#include "trace_gfs2.h"

Go to the source code of this file.

Functions

int gfs2_trans_begin (struct gfs2_sbd *sdp, unsigned int blocks, unsigned int revokes)
 
void gfs2_trans_end (struct gfs2_sbd *sdp)
 
void gfs2_trans_add_bh (struct gfs2_glock *gl, struct buffer_head *bh, int meta)
 
void gfs2_trans_add_revoke (struct gfs2_sbd *sdp, struct gfs2_bufdata *bd)
 
void gfs2_trans_add_unrevoke (struct gfs2_sbd *sdp, u64 blkno, unsigned int len)
 

Function Documentation

void gfs2_trans_add_bh ( struct gfs2_glock gl,
struct buffer_head *  bh,
int  meta 
)

gfs2_trans_add_bh - Add a to-be-modified buffer to the current transaction : the glock the buffer belongs to : The buffer to add : True in the case of adding metadata

Definition at line 153 of file trans.c.

void gfs2_trans_add_revoke ( struct gfs2_sbd sdp,
struct gfs2_bufdata bd 
)

Definition at line 176 of file trans.c.

void gfs2_trans_add_unrevoke ( struct gfs2_sbd sdp,
u64  blkno,
unsigned int  len 
)

Definition at line 185 of file trans.c.

int gfs2_trans_begin ( struct gfs2_sbd sdp,
unsigned int  blocks,
unsigned int  revokes 
)

Definition at line 28 of file trans.c.

void gfs2_trans_end ( struct gfs2_sbd sdp)

Definition at line 107 of file trans.c.