]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc7f36c5cf27c157b6f53787d4e101e712f24b8bd
treec6270dc450d463bd4da25551ea200c3266b2038b
parent3179f2d4b3a33f9635e11e447a86880292bfe3ab
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