path: root/ctree.h
diff options
authorChris Mason <>2012-02-07 05:13:24 -0500
committerChris Mason <>2012-02-07 10:58:32 -0500
commitf5c4c4f3b75bde259640584761fc74a395056aad (patch)
tree4f5d2513e7b25abb16ec709abf770c368cc75a40 /ctree.h
parent34c0fea109b6c4827cb8568ac35a54c66be97a5c (diff)
btrfsck: add code to rebuild extent records
This also includes a new --repair btrfsck option. For now it can only fix errors in the extent allocation tree. Signed-off-by: Chris Mason <>
Diffstat (limited to 'ctree.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/ctree.h b/ctree.h
index 1c3740cf..5e770d28 100644
--- a/ctree.h
+++ b/ctree.h
@@ -1785,6 +1785,7 @@ static inline u32 btrfs_level_size(struct btrfs_root *root, int level) {
btrfs_item_offset_nr(leaf, slot)))
/* extent-tree.c */
+void btrfs_pin_extent(struct btrfs_fs_info *fs_info, u64 bytenr, u64 num_bytes);
int btrfs_extent_post_op(struct btrfs_trans_handle *trans,
struct btrfs_root *root);
int btrfs_copy_pinned(struct btrfs_root *root, struct extent_io_tree *copy);