summaryrefslogtreecommitdiff
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorJan Schmidt <list.btrfs@jan-o-sch.net>2012-05-16 15:18:50 (GMT)
committerJan Schmidt <list.btrfs@jan-o-sch.net>2012-05-30 13:17:01 (GMT)
commitbd989ba359f2acb8bc5f5490e19010fc0a6f8356 (patch)
tree3689629e226678802bfe9b8a91ae560ef50a93f0 /fs/btrfs/ctree.h
parentf29021b29a85701c08afadfd51d87163fb078059 (diff)
downloadlinux-fsl-qoriq-bd989ba359f2acb8bc5f5490e19010fc0a6f8356.tar.xz
Btrfs: add tree modification log functions
The tree mod log will log modifications made fs-tree nodes. Most modifications are done by autobalance of the tree. Such changes are recorded as long as a block entry exists. When released, the log is cleaned. With the tree modification log, it's possible to reconstruct a consistent old state of the tree. This is required to do backref walking on a busy file system. Signed-off-by: Jan Schmidt <list.btrfs@jan-o-sch.net>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r--fs/btrfs/ctree.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index 01639e1..e53bfb9 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -3114,4 +3114,9 @@ struct seq_list {
u32 flags;
};
+void btrfs_get_tree_mod_seq(struct btrfs_fs_info *fs_info,
+ struct seq_list *elem);
+void btrfs_put_tree_mod_seq(struct btrfs_fs_info *fs_info,
+ struct seq_list *elem);
+
#endif