diff options
author | Jan Schmidt <list.btrfs@jan-o-sch.net> | 2012-05-16 17:18:50 +0200 |
---|---|---|
committer | Jan Schmidt <list.btrfs@jan-o-sch.net> | 2012-05-30 15:17:01 +0200 |
commit | bd989ba359f2acb8bc5f5490e19010fc0a6f8356 (patch) | |
tree | 3689629e226678802bfe9b8a91ae560ef50a93f0 /fs/btrfs/ctree.h | |
parent | f29021b29a85701c08afadfd51d87163fb078059 (diff) | |
download | linux-3.10-bd989ba359f2acb8bc5f5490e19010fc0a6f8356.tar.gz linux-3.10-bd989ba359f2acb8bc5f5490e19010fc0a6f8356.tar.bz2 linux-3.10-bd989ba359f2acb8bc5f5490e19010fc0a6f8356.zip |
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.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index 01639e10004..e53bfb9b391 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 |