Btrfs: Add btree locking to the tree defragmentation code
[linux-2.6-block.git] / fs / btrfs / ctree.h
index 244fe86bcc55f27635738b59fc46f3011b01ad9b..ca8e6f15859edd34f7b022621520f5e9e8b5d7fe 100644 (file)
@@ -1411,6 +1411,8 @@ int btrfs_previous_item(struct btrfs_root *root,
 
 struct extent_buffer *btrfs_root_node(struct btrfs_root *root);
 struct extent_buffer *btrfs_lock_root_node(struct btrfs_root *root);
+int btrfs_find_next_key(struct btrfs_root *root, struct btrfs_path *path,
+                       struct btrfs_key *key, int lowest_level);
 
 int btrfs_cow_block(struct btrfs_trans_handle *trans,
                    struct btrfs_root *root, struct extent_buffer *buf,