]> 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)
commitae2d600720dcbe098ec487c37ea94d79d1dedc6b
treec6270dc450d463bd4da25551ea200c3266b2038b
parent08dbf561afc9d89a0a5990e52a32351d5dcf4bc8
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