btrfs: Introduce btrfs_io_geometry infrastructure
authorNikolay Borisov <nborisov@suse.com>
Mon, 3 Jun 2019 09:05:03 +0000 (12:05 +0300)
committerDavid Sterba <dsterba@suse.com>
Tue, 2 Jul 2019 10:30:49 +0000 (12:30 +0200)
commit5f1411265e16b257a945a5c9044aecbc7bb99443
treec6270dc450d463bd4da25551ea200c3266b2038b
parentc9d713d5b5e8c1fb97af8fa3e267300fe25b8921
btrfs: Introduce btrfs_io_geometry infrastructure

Add a structure that holds various parameters for IO calculations and a
helper that fills the values. This will help further refactoring and
reduction of functions that in some way open-coded the calculations.

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c
fs/btrfs/volumes.h