]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: pass bytes to btrfs_bio_alloc
authorDavid Sterba <dsterba@suse.com>
Fri, 2 Jun 2017 16:35:36 +0000 (18:35 +0200)
committerDavid Sterba <dsterba@suse.com>
Mon, 19 Jun 2017 16:26:03 +0000 (18:26 +0200)
commit216a996ab0fb7895550975ce5c58d45bd117b4e3
tree9a71df1d81adba11439e8496d227592434ae1f29
parente200076c8afda4213649b17cffa091c81ecf0aa7
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>
fs/btrfs/compression.c
fs/btrfs/extent_io.c
fs/btrfs/extent_io.h