Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
tree-log.c File Reference
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/list_sort.h>
#include "ctree.h"
#include "transaction.h"
#include "disk-io.h"
#include "locking.h"
#include "print-tree.h"
#include "backref.h"
#include "compat.h"
#include "tree-log.h"
#include "hash.h"

Go to the source code of this file.

Data Structures

struct  walk_control
 
struct  log_args
 

Macros

#define LOG_INODE_ALL   0
 
#define LOG_INODE_EXISTS   1
 
#define LOG_WALK_PIN_ONLY   0
 
#define LOG_WALK_REPLAY_INODES   1
 
#define LOG_WALK_REPLAY_ALL   2
 

Functions

int btrfs_pin_log_trans (struct btrfs_root *root)
 
void btrfs_end_log_trans (struct btrfs_root *root)
 
int btrfs_sync_log (struct btrfs_trans_handle *trans, struct btrfs_root *root)
 
int btrfs_free_log (struct btrfs_trans_handle *trans, struct btrfs_root *root)
 
int btrfs_free_log_root_tree (struct btrfs_trans_handle *trans, struct btrfs_fs_info *fs_info)
 
int btrfs_del_dir_entries_in_log (struct btrfs_trans_handle *trans, struct btrfs_root *root, const char *name, int name_len, struct inode *dir, u64 index)
 
int btrfs_del_inode_ref_in_log (struct btrfs_trans_handle *trans, struct btrfs_root *root, const char *name, int name_len, struct inode *inode, u64 dirid)
 
int btrfs_log_inode_parent (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct inode *inode, struct dentry *parent, int exists_only)
 
int btrfs_log_dentry_safe (struct btrfs_trans_handle *trans, struct btrfs_root *root, struct dentry *dentry)
 
int btrfs_recover_log_trees (struct btrfs_root *log_root_tree)
 
void btrfs_record_unlink_dir (struct btrfs_trans_handle *trans, struct inode *dir, struct inode *inode, int for_rename)
 
int btrfs_log_new_name (struct btrfs_trans_handle *trans, struct inode *inode, struct inode *old_dir, struct dentry *parent)
 

Macro Definition Documentation

#define LOG_INODE_ALL   0

Definition at line 38 of file tree-log.c.

#define LOG_INODE_EXISTS   1

Definition at line 39 of file tree-log.c.

#define LOG_WALK_PIN_ONLY   0

Definition at line 93 of file tree-log.c.

#define LOG_WALK_REPLAY_ALL   2

Definition at line 95 of file tree-log.c.

#define LOG_WALK_REPLAY_INODES   1

Definition at line 94 of file tree-log.c.

Function Documentation

int btrfs_del_dir_entries_in_log ( struct btrfs_trans_handle trans,
struct btrfs_root root,
const char name,
int  name_len,
struct inode dir,
u64  index 
)

Definition at line 2526 of file tree-log.c.

int btrfs_del_inode_ref_in_log ( struct btrfs_trans_handle trans,
struct btrfs_root root,
const char name,
int  name_len,
struct inode inode,
u64  dirid 
)

Definition at line 2628 of file tree-log.c.

void btrfs_end_log_trans ( struct btrfs_root root)

Definition at line 218 of file tree-log.c.

int btrfs_free_log ( struct btrfs_trans_handle trans,
struct btrfs_root root 
)

Definition at line 2486 of file tree-log.c.

int btrfs_free_log_root_tree ( struct btrfs_trans_handle trans,
struct btrfs_fs_info fs_info 
)

Definition at line 2495 of file tree-log.c.

int btrfs_log_dentry_safe ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct dentry dentry 
)

Definition at line 3731 of file tree-log.c.

int btrfs_log_inode_parent ( struct btrfs_trans_handle trans,
struct btrfs_root root,
struct inode inode,
struct dentry parent,
int  exists_only 
)

Definition at line 3630 of file tree-log.c.

int btrfs_log_new_name ( struct btrfs_trans_handle trans,
struct inode inode,
struct inode old_dir,
struct dentry parent 
)

Definition at line 3945 of file tree-log.c.

int btrfs_pin_log_trans ( struct btrfs_root root)

Definition at line 204 of file tree-log.c.

void btrfs_record_unlink_dir ( struct btrfs_trans_handle trans,
struct inode dir,
struct inode inode,
int  for_rename 
)

Definition at line 3889 of file tree-log.c.

int btrfs_recover_log_trees ( struct btrfs_root log_root_tree)

Definition at line 3747 of file tree-log.c.

int btrfs_sync_log ( struct btrfs_trans_handle trans,
struct btrfs_root root 
)

Definition at line 2272 of file tree-log.c.