Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
transaction.c File Reference
#include <linux/fs.h>
#include <linux/slab.h>
#include <linux/sched.h>
#include <linux/writeback.h>
#include <linux/pagemap.h>
#include <linux/blkdev.h>
#include <linux/uuid.h>
#include "ctree.h"
#include "disk-io.h"
#include "transaction.h"
#include "locking.h"
#include "tree-log.h"
#include "inode-map.h"
#include "volumes.h"

Go to the source code of this file.

Data Structures

struct  btrfs_async_commit
 

Macros

#define BTRFS_ROOT_TRANS_TAG   0
 

Functions

void put_transaction (struct btrfs_transaction *transaction)
 
int btrfs_record_root_in_trans (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_start_ioctl_transaction (struct btrfs_root *root)
 
struct btrfs_trans_handlebtrfs_attach_transaction (struct btrfs_root *root)
 
int btrfs_wait_for_commit (struct btrfs_root *root, u64 transid)
 
void btrfs_throttle (struct btrfs_root *root)
 
int btrfs_should_end_transaction (struct btrfs_trans_handle *trans, struct btrfs_root *root)
 
int btrfs_end_transaction (struct btrfs_trans_handle *trans, struct btrfs_root *root)
 
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_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_write_and_wait_marked_extents (struct btrfs_root *root, struct extent_io_tree *dirty_pages, int mark)
 
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_transaction_in_commit (struct btrfs_fs_info *info)
 
int btrfs_transaction_blocked (struct btrfs_fs_info *info)
 
int btrfs_commit_transaction_async (struct btrfs_trans_handle *trans, struct btrfs_root *root, int wait_for_unblock)
 
int btrfs_commit_transaction (struct btrfs_trans_handle *trans, struct btrfs_root *root)
 
int btrfs_clean_old_snapshots (struct btrfs_root *root)
 

Macro Definition Documentation

#define BTRFS_ROOT_TRANS_TAG   0

Definition at line 34 of file transaction.c.

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.