Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Enumerations | Functions
transaction.h File Reference
#include "btrfs_inode.h"
#include "delayed-ref.h"
#include "ctree.h"

Go to the source code of this file.

Data Structures

struct  btrfs_transaction
 
struct  btrfs_trans_handle
 
struct  btrfs_pending_snapshot
 

Enumerations

enum  btrfs_trans_type {
  TRANS_START, TRANS_JOIN, TRANS_USERSPACE, TRANS_JOIN_NOLOCK,
  TRANS_ATTACH
}
 

Functions

int btrfs_end_transaction (struct btrfs_trans_handle *trans, struct btrfs_root *root)
 
struct btrfs_trans_handlebtrfs_start_transaction (struct btrfs_root *root, int num_items)
 
struct btrfs_trans_handlebtrfs_start_transaction_noflush (struct btrfs_root *root, int num_items)
 
struct btrfs_trans_handlebtrfs_join_transaction (struct btrfs_root *root)
 
struct btrfs_trans_handlebtrfs_join_transaction_nolock (struct btrfs_root *root)
 
struct btrfs_trans_handlebtrfs_attach_transaction (struct btrfs_root *root)
 
struct btrfs_trans_handlebtrfs_start_ioctl_transaction (struct btrfs_root *root)
 
int btrfs_wait_for_commit (struct btrfs_root *root, u64 transid)
 
int btrfs_write_and_wait_transaction (struct btrfs_trans_handle *trans, struct btrfs_root *root)
 
int btrfs_add_dead_root (struct btrfs_root *root)
 
int btrfs_defrag_root (struct btrfs_root *root, int cacheonly)
 
int btrfs_clean_old_snapshots (struct btrfs_root *root)
 
int btrfs_commit_transaction (struct btrfs_trans_handle *trans, struct btrfs_root *root)
 
int btrfs_commit_transaction_async (struct btrfs_trans_handle *trans, struct btrfs_root *root, int wait_for_unblock)
 
int btrfs_end_transaction_throttle (struct btrfs_trans_handle *trans, struct btrfs_root *root)
 
int btrfs_end_transaction_dmeta (struct btrfs_trans_handle *trans, struct btrfs_root *root)
 
int btrfs_should_end_transaction (struct btrfs_trans_handle *trans, struct btrfs_root *root)
 
void btrfs_throttle (struct btrfs_root *root)
 
int btrfs_record_root_in_trans (struct btrfs_trans_handle *trans, struct btrfs_root *root)
 
int btrfs_write_and_wait_marked_extents (struct btrfs_root *root, struct extent_io_tree *dirty_pages, int mark)
 
int btrfs_write_marked_extents (struct btrfs_root *root, struct extent_io_tree *dirty_pages, int mark)
 
int btrfs_wait_marked_extents (struct btrfs_root *root, struct extent_io_tree *dirty_pages, int mark)
 
int btrfs_transaction_blocked (struct btrfs_fs_info *info)
 
int btrfs_transaction_in_commit (struct btrfs_fs_info *info)
 
void put_transaction (struct btrfs_transaction *transaction)
 

Enumeration Type Documentation

Enumerator:
TRANS_START 
TRANS_JOIN 
TRANS_USERSPACE 
TRANS_JOIN_NOLOCK 
TRANS_ATTACH 

Definition at line 50 of file transaction.h.

Function Documentation

int btrfs_add_dead_root ( struct btrfs_root root)

Definition at line 885 of file transaction.c.

struct btrfs_trans_handle* btrfs_attach_transaction ( struct btrfs_root root)
read

Definition at line 449 of file transaction.c.

int btrfs_clean_old_snapshots ( struct btrfs_root root)

Definition at line 1731 of file transaction.c.

int btrfs_commit_transaction ( struct btrfs_trans_handle trans,
struct btrfs_root root 
)

Definition at line 1410 of file transaction.c.

int btrfs_commit_transaction_async ( struct btrfs_trans_handle trans,
struct btrfs_root root,
int  wait_for_unblock 
)

Definition at line 1322 of file transaction.c.

int btrfs_defrag_root ( struct btrfs_root root,
int  cacheonly 
)

Definition at line 956 of file transaction.c.

int btrfs_end_transaction ( struct btrfs_trans_handle trans,
struct btrfs_root root 
)

Definition at line 651 of file transaction.c.

int btrfs_end_transaction_dmeta ( struct btrfs_trans_handle trans,
struct btrfs_root root 
)

Definition at line 673 of file transaction.c.

int btrfs_end_transaction_throttle ( struct btrfs_trans_handle trans,
struct btrfs_root root 
)

Definition at line 662 of file transaction.c.

struct btrfs_trans_handle* btrfs_join_transaction ( struct btrfs_root root)
read

Definition at line 434 of file transaction.c.

struct btrfs_trans_handle* btrfs_join_transaction_nolock ( struct btrfs_root root)
read

Definition at line 439 of file transaction.c.

int btrfs_record_root_in_trans ( struct btrfs_trans_handle trans,
struct btrfs_root root 
)

Definition at line 239 of file transaction.c.

int btrfs_should_end_transaction ( struct btrfs_trans_handle trans,
struct btrfs_root root 
)

Definition at line 527 of file transaction.c.

struct btrfs_trans_handle* btrfs_start_ioctl_transaction ( struct btrfs_root root)
read

Definition at line 444 of file transaction.c.

struct btrfs_trans_handle* btrfs_start_transaction ( struct btrfs_root root,
int  num_items 
)
read

Definition at line 422 of file transaction.c.

struct btrfs_trans_handle* btrfs_start_transaction_noflush ( struct btrfs_root root,
int  num_items 
)
read

Definition at line 428 of file transaction.c.

void btrfs_throttle ( struct btrfs_root root)

Definition at line 512 of file transaction.c.

int btrfs_transaction_blocked ( struct btrfs_fs_info info)

Definition at line 1262 of file transaction.c.

int btrfs_transaction_in_commit ( struct btrfs_fs_info info)

Definition at line 1252 of file transaction.c.

int btrfs_wait_for_commit ( struct btrfs_root root,
u64  transid 
)

Definition at line 461 of file transaction.c.

int btrfs_wait_marked_extents ( struct btrfs_root root,
struct extent_io_tree dirty_pages,
int  mark 
)

Definition at line 716 of file transaction.c.

int btrfs_write_and_wait_marked_extents ( struct btrfs_root root,
struct extent_io_tree dirty_pages,
int  mark 
)

Definition at line 746 of file transaction.c.

int btrfs_write_and_wait_transaction ( struct btrfs_trans_handle trans,
struct btrfs_root root 
)

Definition at line 762 of file transaction.c.

int btrfs_write_marked_extents ( struct btrfs_root root,
struct extent_io_tree dirty_pages,
int  mark 
)

Definition at line 684 of file transaction.c.

void put_transaction ( struct btrfs_transaction transaction)

Definition at line 36 of file transaction.c.