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

Go to the source code of this file.

Data Structures

struct  btrfs_async_delayed_node
 

Macros

#define BTRFS_DELAYED_WRITEBACK   400
 
#define BTRFS_DELAYED_BACKGROUND   100
 

Functions

int __init btrfs_delayed_inode_init (void)
 
void btrfs_delayed_inode_exit (void)
 
struct btrfs_delayed_nodebtrfs_first_delayed_node (struct btrfs_delayed_root *delayed_root)
 
struct btrfs_delayed_nodebtrfs_next_delayed_node (struct btrfs_delayed_node *node)
 
struct btrfs_delayed_nodebtrfs_first_prepared_delayed_node (struct btrfs_delayed_root *delayed_root)
 
struct btrfs_delayed_itembtrfs_alloc_delayed_item (u32 data_len)
 
struct btrfs_delayed_item__btrfs_lookup_delayed_insertion_item (struct btrfs_delayed_node *delayed_node, struct btrfs_key *key)
 
struct btrfs_delayed_item__btrfs_lookup_delayed_deletion_item (struct btrfs_delayed_node *delayed_node, struct btrfs_key *key)
 
struct btrfs_delayed_item__btrfs_search_delayed_insertion_item (struct btrfs_delayed_node *delayed_node, struct btrfs_key *key)
 
struct btrfs_delayed_item__btrfs_search_delayed_deletion_item (struct btrfs_delayed_node *delayed_node, struct btrfs_key *key)
 
struct btrfs_delayed_item__btrfs_first_delayed_insertion_item (struct btrfs_delayed_node *delayed_node)
 
struct btrfs_delayed_item__btrfs_first_delayed_deletion_item (struct btrfs_delayed_node *delayed_node)
 
struct btrfs_delayed_item__btrfs_next_delayed_item (struct btrfs_delayed_item *item)
 
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)
 
int btrfs_commit_inode_delayed_items (struct btrfs_trans_handle *trans, struct inode *inode)
 
void btrfs_remove_delayed_node (struct inode *inode)
 
void btrfs_assert_delayed_root_empty (struct btrfs_root *root)
 
void btrfs_balance_delayed_items (struct btrfs_root *root)
 
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)
 
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)
 
 BTRFS_SETGET_STACK_FUNCS (stack_inode_generation, struct btrfs_inode_item, generation, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_inode_sequence, struct btrfs_inode_item, sequence, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_inode_transid, struct btrfs_inode_item, transid, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_inode_size, struct btrfs_inode_item, size, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_inode_nbytes, struct btrfs_inode_item, nbytes, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_inode_block_group, struct btrfs_inode_item, block_group, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_inode_nlink, struct btrfs_inode_item, nlink, 32)
 
 BTRFS_SETGET_STACK_FUNCS (stack_inode_uid, struct btrfs_inode_item, uid, 32)
 
 BTRFS_SETGET_STACK_FUNCS (stack_inode_gid, struct btrfs_inode_item, gid, 32)
 
 BTRFS_SETGET_STACK_FUNCS (stack_inode_mode, struct btrfs_inode_item, mode, 32)
 
 BTRFS_SETGET_STACK_FUNCS (stack_inode_rdev, struct btrfs_inode_item, rdev, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_inode_flags, struct btrfs_inode_item, flags, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_timespec_sec, struct btrfs_timespec, sec, 64)
 
 BTRFS_SETGET_STACK_FUNCS (stack_timespec_nsec, struct btrfs_timespec, nsec, 32)
 
int btrfs_fill_inode (struct inode *inode, u32 *rdev)
 
int btrfs_delayed_update_inode (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct inode *inode)
 
void btrfs_kill_delayed_inode_items (struct inode *inode)
 
void btrfs_kill_all_delayed_nodes (struct btrfs_root *root)
 
void btrfs_destroy_delayed_inodes (struct btrfs_root *root)
 

Macro Definition Documentation

#define BTRFS_DELAYED_BACKGROUND   100

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

#define BTRFS_DELAYED_WRITEBACK   400

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

Function Documentation

struct btrfs_delayed_item* __btrfs_first_delayed_deletion_item ( struct btrfs_delayed_node delayed_node)
read

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

struct btrfs_delayed_item* __btrfs_first_delayed_insertion_item ( struct btrfs_delayed_node delayed_node)
read

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

struct btrfs_delayed_item* __btrfs_lookup_delayed_deletion_item ( struct btrfs_delayed_node delayed_node,
struct btrfs_key key 
)
read

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

struct btrfs_delayed_item* __btrfs_lookup_delayed_insertion_item ( struct btrfs_delayed_node delayed_node,
struct btrfs_key key 
)
read

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

struct btrfs_delayed_item* __btrfs_next_delayed_item ( struct btrfs_delayed_item item)
read

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

struct btrfs_delayed_item* __btrfs_search_delayed_deletion_item ( struct btrfs_delayed_node delayed_node,
struct btrfs_key key 
)
read

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

struct btrfs_delayed_item* __btrfs_search_delayed_insertion_item ( struct btrfs_delayed_node delayed_node,
struct btrfs_key key 
)
read

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

struct btrfs_delayed_item* btrfs_alloc_delayed_item ( u32  data_len)
read

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

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.

struct btrfs_delayed_node* btrfs_first_delayed_node ( struct btrfs_delayed_root delayed_root)
read

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

struct btrfs_delayed_node* btrfs_first_prepared_delayed_node ( struct btrfs_delayed_root delayed_root)
read

Definition at line 284 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.

struct btrfs_delayed_node* btrfs_next_delayed_node ( struct btrfs_delayed_node node)
read

Definition at line 223 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.

BTRFS_SETGET_STACK_FUNCS ( stack_inode_generation  ,
struct btrfs_inode_item  ,
generation  ,
64   
)
BTRFS_SETGET_STACK_FUNCS ( stack_inode_sequence  ,
struct btrfs_inode_item  ,
sequence  ,
64   
)
BTRFS_SETGET_STACK_FUNCS ( stack_inode_transid  ,
struct btrfs_inode_item  ,
transid  ,
64   
)
BTRFS_SETGET_STACK_FUNCS ( stack_inode_size  ,
struct btrfs_inode_item  ,
size  ,
64   
)
BTRFS_SETGET_STACK_FUNCS ( stack_inode_nbytes  ,
struct btrfs_inode_item  ,
nbytes  ,
64   
)
BTRFS_SETGET_STACK_FUNCS ( stack_inode_block_group  ,
struct btrfs_inode_item  ,
block_group  ,
64   
)
BTRFS_SETGET_STACK_FUNCS ( stack_inode_nlink  ,
struct btrfs_inode_item  ,
nlink  ,
32   
)
BTRFS_SETGET_STACK_FUNCS ( stack_inode_uid  ,
struct btrfs_inode_item  ,
uid  ,
32   
)
BTRFS_SETGET_STACK_FUNCS ( stack_inode_gid  ,
struct btrfs_inode_item  ,
gid  ,
32   
)
BTRFS_SETGET_STACK_FUNCS ( stack_inode_mode  ,
struct btrfs_inode_item  ,
mode  ,
32   
)
BTRFS_SETGET_STACK_FUNCS ( stack_inode_rdev  ,
struct btrfs_inode_item  ,
rdev  ,
64   
)
BTRFS_SETGET_STACK_FUNCS ( stack_inode_flags  ,
struct btrfs_inode_item  ,
flags  ,
64   
)
BTRFS_SETGET_STACK_FUNCS ( stack_timespec_sec  ,
struct btrfs_timespec  ,
sec  ,
64   
)
BTRFS_SETGET_STACK_FUNCS ( stack_timespec_nsec  ,
struct btrfs_timespec  ,
nsec  ,
32   
)
int btrfs_should_delete_dir_index ( struct list_head del_list,
u64  index 
)

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