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

Go to the source code of this file.

Data Structures

struct  btrfs_delayed_ref_node
 
struct  btrfs_delayed_extent_op
 
struct  btrfs_delayed_ref_head
 
struct  btrfs_delayed_tree_ref
 
struct  btrfs_delayed_data_ref
 
struct  btrfs_delayed_ref_root
 

Macros

#define BTRFS_ADD_DELAYED_REF   1 /* add one backref to the tree */
 
#define BTRFS_DROP_DELAYED_REF   2 /* delete one backref from the tree */
 
#define BTRFS_ADD_DELAYED_EXTENT   3 /* record a full extent allocation */
 
#define BTRFS_UPDATE_DELAYED_HEAD   4 /* not changing ref count on head ref */
 

Functions

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)
 
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)
 
struct btrfs_delayed_ref_headbtrfs_find_delayed_ref_head (struct btrfs_trans_handle *trans, u64 bytenr)
 
int btrfs_delayed_ref_lock (struct btrfs_trans_handle *trans, struct btrfs_delayed_ref_head *head)
 
int btrfs_find_ref_cluster (struct btrfs_trans_handle *trans, struct list_head *cluster, u64 search_start)
 
int btrfs_check_delayed_seq (struct btrfs_fs_info *fs_info, struct btrfs_delayed_ref_root *delayed_refs, u64 seq)
 

Macro Definition Documentation

#define BTRFS_ADD_DELAYED_EXTENT   3 /* record a full extent allocation */

Definition at line 24 of file delayed-ref.h.

#define BTRFS_ADD_DELAYED_REF   1 /* add one backref to the tree */

Definition at line 22 of file delayed-ref.h.

#define BTRFS_DROP_DELAYED_REF   2 /* delete one backref from the tree */

Definition at line 23 of file delayed-ref.h.

#define BTRFS_UPDATE_DELAYED_HEAD   4 /* not changing ref count on head ref */

Definition at line 25 of file delayed-ref.h.

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  search_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.