summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/extent_io.h
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2019-06-18 20:00:16 +0200
committerDavid Sterba <dsterba@suse.com>2019-07-02 12:30:51 +0200
commite749af443fa8dac67a896d38f5eca450a5b9026a (patch)
treeb838f6e369a0ffdccdacaffe8ac55a36b3ce61dd /fs/btrfs/extent_io.h
parente1ea2beee284d8e434e51e60de9e157a18fe8b42 (diff)
downloadlinux-e749af443fa8dac67a896d38f5eca450a5b9026a.tar.gz
linux-e749af443fa8dac67a896d38f5eca450a5b9026a.tar.bz2
linux-e749af443fa8dac67a896d38f5eca450a5b9026a.zip
btrfs: lift bio_set_dev from bio allocation helpers
The block device is passed around for the only purpose to set it in new bios. Move the assignment one level up. This is a preparatory patch for further bdev cleanups. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/extent_io.h')
-rw-r--r--fs/btrfs/extent_io.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/extent_io.h b/fs/btrfs/extent_io.h
index 844e595cde5b..6e13a62a2974 100644
--- a/fs/btrfs/extent_io.h
+++ b/fs/btrfs/extent_io.h
@@ -497,7 +497,7 @@ void extent_clear_unlock_delalloc(struct inode *inode, u64 start, u64 end,
u64 delalloc_end, struct page *locked_page,
unsigned bits_to_clear,
unsigned long page_ops);
-struct bio *btrfs_bio_alloc(struct block_device *bdev, u64 first_byte);
+struct bio *btrfs_bio_alloc(u64 first_byte);
struct bio *btrfs_io_bio_alloc(unsigned int nr_iovecs);
struct bio *btrfs_bio_clone(struct bio *bio);
struct bio *btrfs_bio_clone_partial(struct bio *orig, int offset, int size);