diff options
author | David Sterba <dsterba@suse.com> | 2017-06-02 18:35:36 +0200 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2017-06-19 18:26:03 +0200 |
commit | c821e7f3daa4d02d6303f4f97a3243ea8a6f9411 (patch) | |
tree | 9a71df1d81adba11439e8496d227592434ae1f29 /fs/btrfs/extent_io.h | |
parent | 9886b1743350db379f7845715e39d0cbe0e0de88 (diff) | |
download | linux-stable-c821e7f3daa4d02d6303f4f97a3243ea8a6f9411.tar.gz linux-stable-c821e7f3daa4d02d6303f4f97a3243ea8a6f9411.tar.bz2 linux-stable-c821e7f3daa4d02d6303f4f97a3243ea8a6f9411.zip |
btrfs: pass bytes to btrfs_bio_alloc
Most callers of btrfs_bio_alloc convert from bytes to sectors. Hide that
in the helper and simplify the logic in the callsers.
Reviewed-by: Anand Jain <anand.jain@oracle.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/extent_io.h')
-rw-r--r-- | fs/btrfs/extent_io.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/extent_io.h b/fs/btrfs/extent_io.h index fb7a938ecbc9..8071e3977614 100644 --- a/fs/btrfs/extent_io.h +++ b/fs/btrfs/extent_io.h @@ -462,7 +462,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_sector); +struct bio *btrfs_bio_alloc(struct block_device *bdev, u64 first_byte); struct bio *btrfs_io_bio_alloc(gfp_t gfp_mask, 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); |