Re: [PATCH v2 1/3] btrfs-progs: Refactor test_minimum_size to use calculated minimal device size

2017-10-26 Thread David Sterba
On Mon, Oct 16, 2017 at 04:31:12PM +0800, Lu Fengqi wrote: > On Mon, Oct 16, 2017 at 04:22:56PM +0800, Qu Wenruo wrote: > >test_minimum_size() function is only called to check if provided device > >is large enough. > > > >However the minimal device size only needs to be calculated once, and > >can

Re: [PATCH v2 1/3] btrfs-progs: Refactor test_minimum_size to use calculated minimal device size

2017-10-16 Thread Lu Fengqi
On Mon, Oct 16, 2017 at 04:22:56PM +0800, Qu Wenruo wrote: >test_minimum_size() function is only called to check if provided device >is large enough. > >However the minimal device size only needs to be calculated once, and >can be reused everywhere. > >Refactor that function to make later modificat

[PATCH v2 1/3] btrfs-progs: Refactor test_minimum_size to use calculated minimal device size

2017-10-16 Thread Qu Wenruo
test_minimum_size() function is only called to check if provided device is large enough. However the minimal device size only needs to be calculated once, and can be reused everywhere. Refactor that function to make later modification easier. Signed-off-by: Qu Wenruo --- v2: New patch, cleanu