Re: [PATCH] btrfs: cleanup btrfs_balance profile validity checks

2015-09-22 Thread David Sterba
On Sun, Aug 30, 2015 at 09:45:49PM +, Alexandru Moise wrote: > Improve readability by generalizing the profile validity checks, > I had to read through those if statements half a dozen times on my > first try just to get an idea of what's happening there. > > Signed-off-by: Alexandru Moise

Re: [PATCH] btrfs: cleanup btrfs_balance profile validity checks

2015-09-22 Thread David Sterba
On Sun, Aug 30, 2015 at 09:45:49PM +, Alexandru Moise wrote: > Improve readability by generalizing the profile validity checks, > I had to read through those if statements half a dozen times on my > first try just to get an idea of what's happening there. > > Signed-off-by: Alexandru Moise

[PATCH] btrfs: cleanup btrfs_balance profile validity checks

2015-08-30 Thread Alexandru Moise
Improve readability by generalizing the profile validity checks, I had to read through those if statements half a dozen times on my first try just to get an idea of what's happening there. Signed-off-by: Alexandru Moise <00moses.alexande...@gmail.com> --- fs/btrfs/volumes.c | 21

[PATCH] btrfs: cleanup btrfs_balance profile validity checks

2015-08-30 Thread Alexandru Moise
Improve readability by generalizing the profile validity checks, I had to read through those if statements half a dozen times on my first try just to get an idea of what's happening there. Signed-off-by: Alexandru Moise 00moses.alexande...@gmail.com --- fs/btrfs/volumes.c | 21