Commit bd989ba3 authored by Jan Schmidt's avatar Jan Schmidt

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: default avatarJan Schmidt <list.btrfs@jan-o-sch.net>
parent f29021b2
This diff is collapsed.
...@@ -3114,4 +3114,9 @@ struct seq_list { ...@@ -3114,4 +3114,9 @@ struct seq_list {
u32 flags; 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 #endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment