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

Go to the source code of this file.

Data Structures

struct  btrfs_free_space
 
struct  btrfs_free_space_ctl
 
struct  btrfs_free_space_op
 

Functions

struct inodelookup_free_space_inode (struct btrfs_root *root, struct btrfs_block_group_cache *block_group, struct btrfs_path *path)
 
int create_free_space_inode (struct btrfs_root *root, struct btrfs_trans_handle *trans, struct btrfs_block_group_cache *block_group, struct btrfs_path *path)
 
int btrfs_truncate_free_space_cache (struct btrfs_root *root, struct btrfs_trans_handle *trans, struct btrfs_path *path, struct inode *inode)
 
int load_free_space_cache (struct btrfs_fs_info *fs_info, struct btrfs_block_group_cache *block_group)
 
int btrfs_write_out_cache (struct btrfs_root *root, struct btrfs_trans_handle *trans, struct btrfs_block_group_cache *block_group, struct btrfs_path *path)
 
struct inodelookup_free_ino_inode (struct btrfs_root *root, struct btrfs_path *path)
 
int create_free_ino_inode (struct btrfs_root *root, struct btrfs_trans_handle *trans, struct btrfs_path *path)
 
int load_free_ino_cache (struct btrfs_fs_info *fs_info, struct btrfs_root *root)
 
int btrfs_write_out_ino_cache (struct btrfs_root *root, struct btrfs_trans_handle *trans, struct btrfs_path *path)
 
void btrfs_init_free_space_ctl (struct btrfs_block_group_cache *block_group)
 
int __btrfs_add_free_space (struct btrfs_free_space_ctl *ctl, u64 bytenr, u64 size)
 
int btrfs_remove_free_space (struct btrfs_block_group_cache *block_group, u64 bytenr, u64 size)
 
void __btrfs_remove_free_space_cache (struct btrfs_free_space_ctl *ctl)
 
void btrfs_remove_free_space_cache (struct btrfs_block_group_cache *block_group)
 
u64 btrfs_find_space_for_alloc (struct btrfs_block_group_cache *block_group, u64 offset, u64 bytes, u64 empty_size)
 
u64 btrfs_find_ino_for_alloc (struct btrfs_root *fs_root)
 
void btrfs_dump_free_space (struct btrfs_block_group_cache *block_group, u64 bytes)
 
int btrfs_find_space_cluster (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct btrfs_block_group_cache *block_group, struct btrfs_free_cluster *cluster, u64 offset, u64 bytes, u64 empty_size)
 
void btrfs_init_free_cluster (struct btrfs_free_cluster *cluster)
 
u64 btrfs_alloc_from_cluster (struct btrfs_block_group_cache *block_group, struct btrfs_free_cluster *cluster, u64 bytes, u64 min_start)
 
int btrfs_return_cluster_to_free_space (struct btrfs_block_group_cache *block_group, struct btrfs_free_cluster *cluster)
 
int btrfs_trim_block_group (struct btrfs_block_group_cache *block_group, u64 *trimmed, u64 start, u64 end, u64 minlen)
 

Function Documentation

int __btrfs_add_free_space ( struct btrfs_free_space_ctl ctl,
u64  bytenr,
u64  size 
)

Definition at line 1827 of file free-space-cache.c.

void __btrfs_remove_free_space_cache ( struct btrfs_free_space_ctl ctl)

Definition at line 2067 of file free-space-cache.c.

u64 btrfs_alloc_from_cluster ( struct btrfs_block_group_cache block_group,
struct btrfs_free_cluster cluster,
u64  bytes,
u64  min_start 
)

Definition at line 2205 of file free-space-cache.c.

void btrfs_dump_free_space ( struct btrfs_block_group_cache block_group,
u64  bytes 
)

Definition at line 1959 of file free-space-cache.c.

u64 btrfs_find_ino_for_alloc ( struct btrfs_root fs_root)

Definition at line 2795 of file free-space-cache.c.

int btrfs_find_space_cluster ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct btrfs_block_group_cache block_group,
struct btrfs_free_cluster cluster,
u64  offset,
u64  bytes,
u64  empty_size 
)

Definition at line 2495 of file free-space-cache.c.

u64 btrfs_find_space_for_alloc ( struct btrfs_block_group_cache block_group,
u64  offset,
u64  bytes,
u64  empty_size 
)

Definition at line 2099 of file free-space-cache.c.

void btrfs_init_free_cluster ( struct btrfs_free_cluster cluster)

Definition at line 2577 of file free-space-cache.c.

void btrfs_init_free_space_ctl ( struct btrfs_block_group_cache block_group)

Definition at line 1982 of file free-space-cache.c.

int btrfs_remove_free_space ( struct btrfs_block_group_cache block_group,
u64  bytenr,
u64  size 
)

Definition at line 1872 of file free-space-cache.c.

void btrfs_remove_free_space_cache ( struct btrfs_block_group_cache block_group)

Definition at line 2074 of file free-space-cache.c.

int btrfs_return_cluster_to_free_space ( struct btrfs_block_group_cache block_group,
struct btrfs_free_cluster cluster 
)

Definition at line 2141 of file free-space-cache.c.

int btrfs_trim_block_group ( struct btrfs_block_group_cache block_group,
u64 trimmed,
u64  start,
u64  end,
u64  minlen 
)

Definition at line 2772 of file free-space-cache.c.

int btrfs_truncate_free_space_cache ( struct btrfs_root root,
struct btrfs_trans_handle trans,
struct btrfs_path path,
struct inode inode 
)

Definition at line 198 of file free-space-cache.c.

int btrfs_write_out_cache ( struct btrfs_root root,
struct btrfs_trans_handle trans,
struct btrfs_block_group_cache block_group,
struct btrfs_path path 
)

Definition at line 1078 of file free-space-cache.c.

int btrfs_write_out_ino_cache ( struct btrfs_root root,
struct btrfs_trans_handle trans,
struct btrfs_path path 
)

Definition at line 2912 of file free-space-cache.c.

int create_free_ino_inode ( struct btrfs_root root,
struct btrfs_trans_handle trans,
struct btrfs_path path 
)

Definition at line 2863 of file free-space-cache.c.

int create_free_space_inode ( struct btrfs_root root,
struct btrfs_trans_handle trans,
struct btrfs_block_group_cache block_group,
struct btrfs_path path 
)

Definition at line 182 of file free-space-cache.c.

int load_free_ino_cache ( struct btrfs_fs_info fs_info,
struct btrfs_root root 
)

Definition at line 2871 of file free-space-cache.c.

int load_free_space_cache ( struct btrfs_fs_info fs_info,
struct btrfs_block_group_cache block_group 
)

Definition at line 781 of file free-space-cache.c.

struct inode* lookup_free_ino_inode ( struct btrfs_root root,
struct btrfs_path path 
)
read

Definition at line 2839 of file free-space-cache.c.

struct inode* lookup_free_space_inode ( struct btrfs_root root,
struct btrfs_block_group_cache block_group,
struct btrfs_path path 
)
read

Definition at line 86 of file free-space-cache.c.