aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.h
diff options
context:
space:
mode:
authorJan Schmidt <list.btrfs@jan-o-sch.net>2012-05-16 12:25:47 -0400
committerJan Schmidt <list.btrfs@jan-o-sch.net>2012-05-30 09:17:33 -0400
commit5d9e75c41d11ca79b1d1ff6ed17c88c9047d1fea (patch)
treec7e6e1011997dcba5fd9522cd4172b34dec15860 /fs/btrfs/ctree.h
parentf3ea38da3e76455fbd6d405cdca4d050ed085458 (diff)
Btrfs: add btrfs_search_old_slot
The tree modification log together with the current state of the tree gives a consistent, old version of the tree. btrfs_search_old_slot is used to search through this old version and return old (dummy!) extent buffers. Naturally, this function cannot do any tree modifications. Signed-off-by: Jan Schmidt <list.btrfs@jan-o-sch.net>
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r--fs/btrfs/ctree.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h
index e53bfb9b3915..6ba21b12cec4 100644
--- a/fs/btrfs/ctree.h
+++ b/fs/btrfs/ctree.h
@@ -2668,6 +2668,8 @@ int btrfs_duplicate_item(struct btrfs_trans_handle *trans,
2668int btrfs_search_slot(struct btrfs_trans_handle *trans, struct btrfs_root 2668int btrfs_search_slot(struct btrfs_trans_handle *trans, struct btrfs_root
2669 *root, struct btrfs_key *key, struct btrfs_path *p, int 2669 *root, struct btrfs_key *key, struct btrfs_path *p, int
2670 ins_len, int cow); 2670 ins_len, int cow);
2671int btrfs_search_old_slot(struct btrfs_root *root, struct btrfs_key *key,
2672 struct btrfs_path *p, u64 time_seq);
2671int btrfs_realloc_node(struct btrfs_trans_handle *trans, 2673int btrfs_realloc_node(struct btrfs_trans_handle *trans,
2672 struct btrfs_root *root, struct extent_buffer *parent, 2674 struct btrfs_root *root, struct extent_buffer *parent,
2673 int start_slot, int cache_only, u64 *last_ret, 2675 int start_slot, int cache_only, u64 *last_ret,