Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
xfs_trans.c File Reference
#include "xfs.h"
#include "xfs_fs.h"
#include "xfs_types.h"
#include "xfs_log.h"
#include "xfs_trans.h"
#include "xfs_sb.h"
#include "xfs_ag.h"
#include "xfs_mount.h"
#include "xfs_error.h"
#include "xfs_da_btree.h"
#include "xfs_bmap_btree.h"
#include "xfs_alloc_btree.h"
#include "xfs_ialloc_btree.h"
#include "xfs_dinode.h"
#include "xfs_inode.h"
#include "xfs_btree.h"
#include "xfs_ialloc.h"
#include "xfs_alloc.h"
#include "xfs_extent_busy.h"
#include "xfs_bmap.h"
#include "xfs_quota.h"
#include "xfs_trans_priv.h"
#include "xfs_trans_space.h"
#include "xfs_inode_item.h"
#include "xfs_trace.h"

Go to the source code of this file.

Macros

#define LOG_ITEM_BATCH_SIZE   32
 

Functions

STATIC uint xfs_calc_write_reservation (struct xfs_mount *mp)
 
STATIC uint xfs_calc_itruncate_reservation (struct xfs_mount *mp)
 
STATIC uint xfs_calc_rename_reservation (struct xfs_mount *mp)
 
STATIC uint xfs_calc_link_reservation (struct xfs_mount *mp)
 
STATIC uint xfs_calc_remove_reservation (struct xfs_mount *mp)
 
STATIC uint xfs_calc_symlink_reservation (struct xfs_mount *mp)
 
STATIC uint xfs_calc_create_reservation (struct xfs_mount *mp)
 
STATIC uint xfs_calc_mkdir_reservation (struct xfs_mount *mp)
 
STATIC uint xfs_calc_ifree_reservation (struct xfs_mount *mp)
 
STATIC uint xfs_calc_ichange_reservation (struct xfs_mount *mp)
 
STATIC uint xfs_calc_growdata_reservation (struct xfs_mount *mp)
 
STATIC uint xfs_calc_growrtalloc_reservation (struct xfs_mount *mp)
 
STATIC uint xfs_calc_growrtzero_reservation (struct xfs_mount *mp)
 
STATIC uint xfs_calc_growrtfree_reservation (struct xfs_mount *mp)
 
STATIC uint xfs_calc_swrite_reservation (struct xfs_mount *mp)
 
STATIC uint xfs_calc_writeid_reservation (xfs_mount_t *mp)
 
STATIC uint xfs_calc_addafork_reservation (struct xfs_mount *mp)
 
STATIC uint xfs_calc_attrinval_reservation (struct xfs_mount *mp)
 
STATIC uint xfs_calc_attrset_reservation (struct xfs_mount *mp)
 
STATIC uint xfs_calc_attrrm_reservation (struct xfs_mount *mp)
 
STATIC uint xfs_calc_clear_agi_bucket_reservation (struct xfs_mount *mp)
 
void xfs_trans_init (struct xfs_mount *mp)
 
xfs_trans_t * xfs_trans_alloc (xfs_mount_t *mp, uint type)
 
xfs_trans_t * _xfs_trans_alloc (xfs_mount_t *mp, uint type, xfs_km_flags_t memflags)
 
STATIC void xfs_trans_free (struct xfs_trans *tp)
 
xfs_trans_t * xfs_trans_dup (xfs_trans_t *tp)
 
int xfs_trans_reserve (xfs_trans_t *tp, uint blocks, uint logspace, uint rtextents, uint flags, uint logcount)
 
void xfs_trans_mod_sb (xfs_trans_t *tp, uint field, int64_t delta)
 
STATIC void xfs_trans_apply_sb_deltas (xfs_trans_t *tp)
 
void xfs_trans_unreserve_and_mod_sb (xfs_trans_t *tp)
 
void xfs_trans_add_item (struct xfs_trans *tp, struct xfs_log_item *lip)
 
STATIC void xfs_trans_free_item_desc (struct xfs_log_item_desc *lidp)
 
void xfs_trans_del_item (struct xfs_log_item *lip)
 
void xfs_trans_free_items (struct xfs_trans *tp, xfs_lsn_t commit_lsn, int flags)
 
void xfs_trans_committed_bulk (struct xfs_ail *ailp, struct xfs_log_vec *log_vector, xfs_lsn_t commit_lsn, int aborted)
 
int xfs_trans_commit (struct xfs_trans *tp, uint flags)
 
void xfs_trans_cancel (xfs_trans_t *tp, int flags)
 
int xfs_trans_roll (struct xfs_trans **tpp, struct xfs_inode *dp)
 

Variables

kmem_zone_txfs_trans_zone
 
kmem_zone_txfs_log_item_desc_zone
 

Macro Definition Documentation

#define LOG_ITEM_BATCH_SIZE   32

Function Documentation

xfs_trans_t* _xfs_trans_alloc ( xfs_mount_t *  mp,
uint  type,
xfs_km_flags_t  memflags 
)

Definition at line 588 of file xfs_trans.c.

STATIC uint xfs_calc_addafork_reservation ( struct xfs_mount *  mp)

Definition at line 436 of file xfs_trans.c.

STATIC uint xfs_calc_attrinval_reservation ( struct xfs_mount *  mp)

Definition at line 461 of file xfs_trans.c.

STATIC uint xfs_calc_attrrm_reservation ( struct xfs_mount *  mp)

Definition at line 507 of file xfs_trans.c.

STATIC uint xfs_calc_attrset_reservation ( struct xfs_mount *  mp)

Definition at line 485 of file xfs_trans.c.

STATIC uint xfs_calc_clear_agi_bucket_reservation ( struct xfs_mount *  mp)

Definition at line 527 of file xfs_trans.c.

STATIC uint xfs_calc_create_reservation ( struct xfs_mount *  mp)

Definition at line 266 of file xfs_trans.c.

STATIC uint xfs_calc_growdata_reservation ( struct xfs_mount *  mp)

Definition at line 343 of file xfs_trans.c.

STATIC uint xfs_calc_growrtalloc_reservation ( struct xfs_mount *  mp)

Definition at line 362 of file xfs_trans.c.

STATIC uint xfs_calc_growrtfree_reservation ( struct xfs_mount *  mp)

Definition at line 396 of file xfs_trans.c.

STATIC uint xfs_calc_growrtzero_reservation ( struct xfs_mount *  mp)

Definition at line 379 of file xfs_trans.c.

STATIC uint xfs_calc_ichange_reservation ( struct xfs_mount *  mp)

Definition at line 326 of file xfs_trans.c.

STATIC uint xfs_calc_ifree_reservation ( struct xfs_mount *  mp)

Definition at line 305 of file xfs_trans.c.

STATIC uint xfs_calc_itruncate_reservation ( struct xfs_mount *  mp)

Definition at line 116 of file xfs_trans.c.

STATIC uint xfs_calc_link_reservation ( struct xfs_mount *  mp)

Definition at line 174 of file xfs_trans.c.

STATIC uint xfs_calc_mkdir_reservation ( struct xfs_mount *  mp)

Definition at line 288 of file xfs_trans.c.

STATIC uint xfs_calc_remove_reservation ( struct xfs_mount *  mp)

Definition at line 202 of file xfs_trans.c.

STATIC uint xfs_calc_rename_reservation ( struct xfs_mount *  mp)

Definition at line 147 of file xfs_trans.c.

STATIC uint xfs_calc_swrite_reservation ( struct xfs_mount *  mp)

Definition at line 411 of file xfs_trans.c.

STATIC uint xfs_calc_symlink_reservation ( struct xfs_mount *  mp)

Definition at line 232 of file xfs_trans.c.

STATIC uint xfs_calc_write_reservation ( struct xfs_mount *  mp)

Definition at line 84 of file xfs_trans.c.

STATIC uint xfs_calc_writeid_reservation ( xfs_mount_t *  mp)

Definition at line 422 of file xfs_trans.c.

void xfs_trans_add_item ( struct xfs_trans *  tp,
struct xfs_log_item *  lip 
)

Definition at line 1167 of file xfs_trans.c.

xfs_trans_t* xfs_trans_alloc ( xfs_mount_t *  mp,
uint  type 
)

Definition at line 575 of file xfs_trans.c.

STATIC void xfs_trans_apply_sb_deltas ( xfs_trans_t *  tp)

Definition at line 922 of file xfs_trans.c.

void xfs_trans_cancel ( xfs_trans_t *  tp,
int  flags 
)

Definition at line 1458 of file xfs_trans.c.

int xfs_trans_commit ( struct xfs_trans *  tp,
uint  flags 
)

Definition at line 1358 of file xfs_trans.c.

void xfs_trans_committed_bulk ( struct xfs_ail ailp,
struct xfs_log_vec log_vector,
xfs_lsn_t  commit_lsn,
int  aborted 
)

Definition at line 1270 of file xfs_trans.c.

void xfs_trans_del_item ( struct xfs_log_item *  lip)

Definition at line 1197 of file xfs_trans.c.

xfs_trans_t* xfs_trans_dup ( xfs_trans_t *  tp)

Definition at line 634 of file xfs_trans.c.

STATIC void xfs_trans_free ( struct xfs_trans *  tp)

Definition at line 612 of file xfs_trans.c.

STATIC void xfs_trans_free_item_desc ( struct xfs_log_item_desc lidp)

Definition at line 1186 of file xfs_trans.c.

void xfs_trans_free_items ( struct xfs_trans *  tp,
xfs_lsn_t  commit_lsn,
int  flags 
)

Definition at line 1209 of file xfs_trans.c.

void xfs_trans_init ( struct xfs_mount *  mp)

Definition at line 538 of file xfs_trans.c.

void xfs_trans_mod_sb ( xfs_trans_t *  tp,
uint  field,
int64_t  delta 
)

Definition at line 814 of file xfs_trans.c.

int xfs_trans_reserve ( xfs_trans_t *  tp,
uint  blocks,
uint  logspace,
uint  rtextents,
uint  flags,
uint  logcount 
)

Definition at line 686 of file xfs_trans.c.

int xfs_trans_roll ( struct xfs_trans **  tpp,
struct xfs_inode *  dp 
)

Definition at line 1516 of file xfs_trans.c.

void xfs_trans_unreserve_and_mod_sb ( xfs_trans_t *  tp)

Definition at line 1026 of file xfs_trans.c.

Variable Documentation

kmem_zone_t* xfs_log_item_desc_zone

Definition at line 46 of file xfs_trans.c.

kmem_zone_t* xfs_trans_zone

Definition at line 45 of file xfs_trans.c.