Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
delayed-inode.h File Reference
#include <linux/rbtree.h>
#include <linux/spinlock.h>
#include <linux/mutex.h>
#include <linux/list.h>
#include <linux/wait.h>
#include <linux/atomic.h>
#include "ctree.h"

Go to the source code of this file.

Data Structures

struct  btrfs_delayed_root
 
struct  btrfs_delayed_node
 
struct  btrfs_delayed_item
 

Macros

#define BTRFS_DELAYED_INSERTION_ITEM   1
 
#define BTRFS_DELAYED_DELETION_ITEM   2
 

Functions

int btrfs_insert_delayed_dir_index (struct btrfs_trans_handle *trans, struct btrfs_root *root, const char *name, int name_len, struct inode *dir, struct btrfs_disk_key *disk_key, u8 type, u64 index)
 
int btrfs_delete_delayed_dir_index (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct inode *dir, u64 index)
 
int btrfs_inode_delayed_dir_index_count (struct inode *inode)
 
int btrfs_run_delayed_items (struct btrfs_trans_handle *trans, struct btrfs_root *root)
 
int btrfs_run_delayed_items_nr (struct btrfs_trans_handle *trans, struct btrfs_root *root, int nr)
 
void btrfs_balance_delayed_items (struct btrfs_root *root)
 
int btrfs_commit_inode_delayed_items (struct btrfs_trans_handle *trans, struct inode *inode)
 
void btrfs_remove_delayed_node (struct inode *inode)
 
void btrfs_kill_delayed_inode_items (struct inode *inode)
 
int btrfs_delayed_update_inode (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct inode *inode)
 
int btrfs_fill_inode (struct inode *inode, u32 *rdev)
 
void btrfs_kill_all_delayed_nodes (struct btrfs_root *root)
 
void btrfs_destroy_delayed_inodes (struct btrfs_root *root)
 
void btrfs_get_delayed_items (struct inode *inode, struct list_head *ins_list, struct list_head *del_list)
 
void btrfs_put_delayed_items (struct list_head *ins_list, struct list_head *del_list)
 
int btrfs_should_delete_dir_index (struct list_head *del_list, u64 index)
 
int btrfs_readdir_delayed_dir_index (struct file *filp, void *dirent, filldir_t filldir, struct list_head *ins_list)
 
int __init btrfs_delayed_inode_init (void)
 
void btrfs_delayed_inode_exit (void)
 
void btrfs_assert_delayed_root_empty (struct btrfs_root *root)
 

Macro Definition Documentation

#define BTRFS_DELAYED_DELETION_ITEM   2

Definition at line 34 of file delayed-inode.h.

#define BTRFS_DELAYED_INSERTION_ITEM   1

Definition at line 33 of file delayed-inode.h.

Function Documentation

void btrfs_assert_delayed_root_empty ( struct btrfs_root root)

Definition at line 1368 of file delayed-inode.c.

void btrfs_balance_delayed_items ( struct btrfs_root root)

Definition at line 1375 of file delayed-inode.c.

int btrfs_commit_inode_delayed_items ( struct btrfs_trans_handle trans,
struct inode inode 
)

Definition at line 1210 of file delayed-inode.c.

void btrfs_delayed_inode_exit ( void  )

Definition at line 42 of file delayed-inode.c.

int __init btrfs_delayed_inode_init ( void  )

Definition at line 30 of file delayed-inode.c.

int btrfs_delayed_update_inode ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct inode inode 
)

Definition at line 1799 of file delayed-inode.c.

int btrfs_delete_delayed_dir_index ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct inode dir,
u64  index 
)

Definition at line 1481 of file delayed-inode.c.

void btrfs_destroy_delayed_inodes ( struct btrfs_root root)

Definition at line 1900 of file delayed-inode.c.

int btrfs_fill_inode ( struct inode inode,
u32 rdev 
)

Definition at line 1748 of file delayed-inode.c.

void btrfs_get_delayed_items ( struct inode inode,
struct list_head ins_list,
struct list_head del_list 
)

Definition at line 1557 of file delayed-inode.c.

int btrfs_inode_delayed_dir_index_count ( struct inode inode)

Definition at line 1535 of file delayed-inode.c.

int btrfs_insert_delayed_dir_index ( struct btrfs_trans_handle trans,
struct btrfs_root root,
const char name,
int  name_len,
struct inode dir,
struct btrfs_disk_key disk_key,
u8  type,
u64  index 
)

Definition at line 1402 of file delayed-inode.c.

void btrfs_kill_all_delayed_nodes ( struct btrfs_root root)

Definition at line 1871 of file delayed-inode.c.

void btrfs_kill_delayed_inode_items ( struct inode inode)

Definition at line 1859 of file delayed-inode.c.

void btrfs_put_delayed_items ( struct list_head ins_list,
struct list_head del_list 
)

Definition at line 1594 of file delayed-inode.c.

int btrfs_readdir_delayed_dir_index ( struct file filp,
void dirent,
filldir_t  filldir,
struct list_head ins_list 
)

Definition at line 1643 of file delayed-inode.c.

void btrfs_remove_delayed_node ( struct inode inode)

Definition at line 1232 of file delayed-inode.c.

int btrfs_run_delayed_items ( struct btrfs_trans_handle trans,
struct btrfs_root root 
)

Definition at line 1172 of file delayed-inode.c.

int btrfs_run_delayed_items_nr ( struct btrfs_trans_handle trans,
struct btrfs_root root,
int  nr 
)

Definition at line 1178 of file delayed-inode.c.

int btrfs_should_delete_dir_index ( struct list_head del_list,
u64  index 
)

Definition at line 1612 of file delayed-inode.c.