aboutsummaryrefslogtreecommitdiffstats
path: root/extent_io.h
diff options
context:
space:
mode:
authorJosef Bacik <jbacik@fb.com>2014-10-10 16:57:07 -0400
committerDavid Sterba <dsterba@suse.cz>2014-10-14 10:39:38 +0200
commitd90d8d2323cdee2bdb3b130236c801ceeb8ea875 (patch)
tree7ad61eb1363ee1c6c940c55accf54ebac37662f1 /extent_io.h
parent6863bcf74fa8bf335d73c04248fc25ac6ada3121 (diff)
downloadbtrfs-progs-d90d8d2323cdee2bdb3b130236c801ceeb8ea875.tar.gz
btrfs-progs-d90d8d2323cdee2bdb3b130236c801ceeb8ea875.tar.xz
btrfs-progs-d90d8d2323cdee2bdb3b130236c801ceeb8ea875.zip
Btrfs-progs: pull back backref.c and fix it up
This patch pulls back backref.c, adds a couple of helpers everywhere that it needs, and cleans up backref.c to fit in btrfs-progs. Thanks, Signed-off-by: Josef Bacik <jbacik@fb.com> [removed free_some_buffers after "do not reclaim extent buffer"] Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'extent_io.h')
-rw-r--r--extent_io.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/extent_io.h b/extent_io.h
index 68fb9ce..acc316e 100644
--- a/extent_io.h
+++ b/extent_io.h
@@ -40,6 +40,7 @@
#define EXTENT_BUFFER_FILLED (1 << 8)
#define EXTENT_CSUM (1 << 9)
#define EXTENT_BAD_TRANSID (1 << 10)
+#define EXTENT_BUFFER_DUMMY (1 << 11)
#define EXTENT_IOBITS (EXTENT_LOCKED | EXTENT_WRITEBACK)
#define BLOCK_GROUP_DATA EXTENT_WRITEBACK
@@ -111,6 +112,7 @@ struct extent_buffer *find_first_extent_buffer(struct extent_io_tree *tree,
u64 start);
struct extent_buffer *alloc_extent_buffer(struct extent_io_tree *tree,
u64 bytenr, u32 blocksize);
+struct extent_buffer *btrfs_clone_extent_buffer(struct extent_buffer *src);
void free_extent_buffer(struct extent_buffer *eb);
int read_extent_from_disk(struct extent_buffer *eb,
unsigned long offset, unsigned long len);