Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
root-tree.c File Reference
#include <linux/uuid.h>
#include "ctree.h"
#include "transaction.h"
#include "disk-io.h"
#include "print-tree.h"

Go to the source code of this file.

Functions

void btrfs_read_root_item (struct btrfs_root *root, struct extent_buffer *eb, int slot, struct btrfs_root_item *item)
 
int btrfs_find_last_root (struct btrfs_root *root, u64 objectid, struct btrfs_root_item *item, struct btrfs_key *key)
 
void btrfs_set_root_node (struct btrfs_root_item *item, struct extent_buffer *node)
 
int btrfs_update_root (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_key *key, struct btrfs_root_item *item)
 
int btrfs_insert_root (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_key *key, struct btrfs_root_item *item)
 
int btrfs_find_dead_roots (struct btrfs_root *root, u64 objectid)
 
int btrfs_find_orphan_roots (struct btrfs_root *tree_root)
 
int btrfs_del_root (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_key *key)
 
int btrfs_del_root_ref (struct btrfs_trans_handle *trans, struct btrfs_root *tree_root, u64 root_id, u64 ref_id, u64 dirid, u64 *sequence, const char *name, int name_len)
 
int btrfs_find_root_ref (struct btrfs_root *tree_root, struct btrfs_path *path, u64 root_id, u64 ref_id)
 
int btrfs_add_root_ref (struct btrfs_trans_handle *trans, struct btrfs_root *tree_root, u64 root_id, u64 ref_id, u64 dirid, u64 sequence, const char *name, int name_len)
 
void btrfs_check_and_init_root_item (struct btrfs_root_item *root_item)
 
void btrfs_update_root_times (struct btrfs_trans_handle *trans, struct btrfs_root *root)
 

Function Documentation

int btrfs_add_root_ref ( struct btrfs_trans_handle trans,
struct btrfs_root tree_root,
u64  root_id,
u64  ref_id,
u64  dirid,
u64  sequence,
const char name,
int  name_len 
)

Definition at line 478 of file root-tree.c.

void btrfs_check_and_init_root_item ( struct btrfs_root_item root_item)

Definition at line 533 of file root-tree.c.

int btrfs_del_root ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct btrfs_key key 
)

Definition at line 367 of file root-tree.c.

int btrfs_del_root_ref ( struct btrfs_trans_handle trans,
struct btrfs_root tree_root,
u64  root_id,
u64  ref_id,
u64  dirid,
u64 sequence,
const char name,
int  name_len 
)

Definition at line 392 of file root-tree.c.

int btrfs_find_dead_roots ( struct btrfs_root root,
u64  objectid 
)

Definition at line 222 of file root-tree.c.

int btrfs_find_last_root ( struct btrfs_root root,
u64  objectid,
struct btrfs_root_item item,
struct btrfs_key key 
)

Definition at line 72 of file root-tree.c.

int btrfs_find_orphan_roots ( struct btrfs_root tree_root)

Definition at line 296 of file root-tree.c.

int btrfs_find_root_ref ( struct btrfs_root tree_root,
struct btrfs_path path,
u64  root_id,
u64  ref_id 
)

Definition at line 448 of file root-tree.c.

int btrfs_insert_root ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct btrfs_key key,
struct btrfs_root_item item 
)

Definition at line 206 of file root-tree.c.

void btrfs_read_root_item ( struct btrfs_root root,
struct extent_buffer eb,
int  slot,
struct btrfs_root_item item 
)

Definition at line 32 of file root-tree.c.

void btrfs_set_root_node ( struct btrfs_root_item item,
struct extent_buffer node 
)

Definition at line 117 of file root-tree.c.

int btrfs_update_root ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct btrfs_key key,
struct btrfs_root_item item 
)

Definition at line 128 of file root-tree.c.

void btrfs_update_root_times ( struct btrfs_trans_handle trans,
struct btrfs_root root 
)

Definition at line 545 of file root-tree.c.