[PATCH] Btrfs: use linux/sizes.h to represent constants

2015-12-14 Thread Byongho Lee
We use many constants to represent size and offset value. And to make code readable we use '256 * 1024 * 1024' instead of '268435456' to represent '256MB'. However we can make far more readable with 'SZ_256MB' which is defined in the 'linux/sizes.h'. So this patch replaces 'xxx * 1024 * 1024'

Re: [PATCH] Btrfs: use linux/sizes.h to represent constants

2015-12-14 Thread David Sterba
On Tue, Dec 15, 2015 at 01:42:10AM +0900, Byongho Lee wrote: > We use many constants to represent size and offset value. And to make > code readable we use '256 * 1024 * 1024' instead of '268435456' to > represent '256MB'. However we can make far more readable with 'SZ_256MB' > which is defined