Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
trans.h File Reference
#include <linux/buffer_head.h>

Go to the source code of this file.

Macros

#define RES_DINODE   1
 
#define RES_INDIRECT   1
 
#define RES_JDATA   1
 
#define RES_DATA   1
 
#define RES_LEAF   1
 
#define RES_RG_HDR   1
 
#define RES_RG_BIT   2
 
#define RES_EATTR   1
 
#define RES_STATFS   1
 
#define RES_QUOTA   2
 

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)
 

Macro Definition Documentation

#define RES_DATA   1

Definition at line 21 of file trans.h.

#define RES_DINODE   1

Definition at line 18 of file trans.h.

#define RES_EATTR   1

Definition at line 25 of file trans.h.

#define RES_INDIRECT   1

Definition at line 19 of file trans.h.

#define RES_JDATA   1

Definition at line 20 of file trans.h.

#define RES_LEAF   1

Definition at line 22 of file trans.h.

#define RES_QUOTA   2

Definition at line 27 of file trans.h.

#define RES_RG_BIT   2

Definition at line 24 of file trans.h.

#define RES_RG_HDR   1

Definition at line 23 of file trans.h.

#define RES_STATFS   1

Definition at line 26 of file trans.h.

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.