summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent_io.h
diff options
context:
space:
mode:
authorMiao Xie <miaox@cn.fujitsu.com>2010-11-22 04:02:55 +0100
committerChris Mason <chris.mason@oracle.com>2010-11-22 04:26:03 +0100
commit88f794ede7fadd4b63135b94d1561c1f2d5eb5f5 (patch)
tree04e4fede4aa520bd4dfb7de7ab28f5ad38d215cc /fs/btrfs/extent_io.h
parentbtrfs: fix free dip and dip->csums twice (diff)
downloadlinux-88f794ede7fadd4b63135b94d1561c1f2d5eb5f5.tar.xz
linux-88f794ede7fadd4b63135b94d1561c1f2d5eb5f5.zip
btrfs: cleanup duplicate bio allocating functions
extent_bio_alloc() and compressed_bio_alloc() are similar, cleanup similar source code. Signed-off-by: Miao Xie <miaox@cn.fujitsu.com> Signed-off-by: Chris Mason <chris.mason@oracle.com>
Diffstat (limited to '')
-rw-r--r--fs/btrfs/extent_io.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/btrfs/extent_io.h b/fs/btrfs/extent_io.h
index 1c6d4f342ef7..4183c8178f01 100644
--- a/fs/btrfs/extent_io.h
+++ b/fs/btrfs/extent_io.h
@@ -310,4 +310,7 @@ int extent_clear_unlock_delalloc(struct inode *inode,
struct extent_io_tree *tree,
u64 start, u64 end, struct page *locked_page,
unsigned long op);
+struct bio *
+btrfs_bio_alloc(struct block_device *bdev, u64 first_sector, int nr_vecs,
+ gfp_t gfp_flags);
#endif