1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19#ifndef __TREE_LOG_
20#define __TREE_LOG_
21
22
23#define BTRFS_NO_LOG_SYNC 256
24
25int btrfs_sync_log(struct btrfs_trans_handle *trans,
26 struct btrfs_root *root);
27int btrfs_free_log(struct btrfs_trans_handle *trans, struct btrfs_root *root);
28int btrfs_free_log_root_tree(struct btrfs_trans_handle *trans,
29 struct btrfs_fs_info *fs_info);
30int btrfs_recover_log_trees(struct btrfs_root *tree_root);
31int btrfs_log_dentry_safe(struct btrfs_trans_handle *trans,
32 struct btrfs_root *root, struct dentry *dentry);
33int btrfs_del_dir_entries_in_log(struct btrfs_trans_handle *trans,
34 struct btrfs_root *root,
35 const char *name, int name_len,
36 struct inode *dir, u64 index);
37int btrfs_del_inode_ref_in_log(struct btrfs_trans_handle *trans,
38 struct btrfs_root *root,
39 const char *name, int name_len,
40 struct inode *inode, u64 dirid);
41void btrfs_end_log_trans(struct btrfs_root *root);
42int btrfs_pin_log_trans(struct btrfs_root *root);
43void btrfs_record_unlink_dir(struct btrfs_trans_handle *trans,
44 struct inode *dir, struct inode *inode,
45 int for_rename);
46int btrfs_log_new_name(struct btrfs_trans_handle *trans,
47 struct inode *inode, struct inode *old_dir,
48 struct dentry *parent);
49#endif
50