]> 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)
commit23e7b25f67e4595c4d8841d65fe383ff50769e35
tree9a71df1d81adba11439e8496d227592434ae1f29
parent74d1b9b9d9b95154aa18fa0562422ad7637c8be8
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