Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
delayed-ref.c File Reference
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/sort.h>
#include "ctree.h"
#include "delayed-ref.h"
#include "transaction.h"

Go to the source code of this file.

Functions

int btrfs_delayed_ref_lock (struct btrfs_trans_handle *trans, struct btrfs_delayed_ref_head *head)
 
void btrfs_merge_delayed_refs (struct btrfs_trans_handle *trans, struct btrfs_fs_info *fs_info, struct btrfs_delayed_ref_root *delayed_refs, struct btrfs_delayed_ref_head *head)
 
int btrfs_check_delayed_seq (struct btrfs_fs_info *fs_info, struct btrfs_delayed_ref_root *delayed_refs, u64 seq)
 
int btrfs_find_ref_cluster (struct btrfs_trans_handle *trans, struct list_head *cluster, u64 start)
 
int btrfs_add_delayed_tree_ref (struct btrfs_fs_info *fs_info, struct btrfs_trans_handle *trans, u64 bytenr, u64 num_bytes, u64 parent, u64 ref_root, int level, int action, struct btrfs_delayed_extent_op *extent_op, int for_cow)
 
int btrfs_add_delayed_data_ref (struct btrfs_fs_info *fs_info, struct btrfs_trans_handle *trans, u64 bytenr, u64 num_bytes, u64 parent, u64 ref_root, u64 owner, u64 offset, int action, struct btrfs_delayed_extent_op *extent_op, int for_cow)
 
int btrfs_add_delayed_extent_op (struct btrfs_fs_info *fs_info, struct btrfs_trans_handle *trans, u64 bytenr, u64 num_bytes, struct btrfs_delayed_extent_op *extent_op)
 
struct btrfs_delayed_ref_headbtrfs_find_delayed_ref_head (struct btrfs_trans_handle *trans, u64 bytenr)
 

Function Documentation

int btrfs_add_delayed_data_ref ( struct btrfs_fs_info fs_info,
struct btrfs_trans_handle trans,
u64  bytenr,
u64  num_bytes,
u64  parent,
u64  ref_root,
u64  owner,
u64  offset,
int  action,
struct btrfs_delayed_extent_op extent_op,
int  for_cow 
)

Definition at line 776 of file delayed-ref.c.

int btrfs_add_delayed_extent_op ( struct btrfs_fs_info fs_info,
struct btrfs_trans_handle trans,
u64  bytenr,
u64  num_bytes,
struct btrfs_delayed_extent_op extent_op 
)

Definition at line 821 of file delayed-ref.c.

int btrfs_add_delayed_tree_ref ( struct btrfs_fs_info fs_info,
struct btrfs_trans_handle trans,
u64  bytenr,
u64  num_bytes,
u64  parent,
u64  ref_root,
int  level,
int  action,
struct btrfs_delayed_extent_op extent_op,
int  for_cow 
)

Definition at line 729 of file delayed-ref.c.

int btrfs_check_delayed_seq ( struct btrfs_fs_info fs_info,
struct btrfs_delayed_ref_root delayed_refs,
u64  seq 
)

Definition at line 344 of file delayed-ref.c.

int btrfs_delayed_ref_lock ( struct btrfs_trans_handle trans,
struct btrfs_delayed_ref_head head 
)

Definition at line 212 of file delayed-ref.c.

struct btrfs_delayed_ref_head* btrfs_find_delayed_ref_head ( struct btrfs_trans_handle trans,
u64  bytenr 
)
read

Definition at line 852 of file delayed-ref.c.

int btrfs_find_ref_cluster ( struct btrfs_trans_handle trans,
struct list_head cluster,
u64  start 
)

Definition at line 366 of file delayed-ref.c.

void btrfs_merge_delayed_refs ( struct btrfs_trans_handle trans,
struct btrfs_fs_info fs_info,
struct btrfs_delayed_ref_root delayed_refs,
struct btrfs_delayed_ref_head head 
)

Definition at line 307 of file delayed-ref.c.