linux/fs/btrfs/tests
Byongho Lee ee22184b53 Btrfs: use linux/sizes.h to represent constants
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' kind of expression with
single 'SZ_xxxMB' if 'xxx' is a power of 2 then 'xxx * SZ_1M' if 'xxx' is
not a power of 2. And I haven't touched to '4096' & '8192' because it's
more intuitive than 'SZ_4KB' & 'SZ_8KB'.

Signed-off-by: Byongho Lee <bhlee.kernel@gmail.com>
Signed-off-by: David Sterba <dsterba@suse.com>
2016-01-07 14:38:02 +01:00
..
btrfs-tests.c btrfs: prevent RCU warning when dereferencing radix tree slot 2014-06-13 09:52:22 -07:00
btrfs-tests.h Btrfs: add sanity tests for new qgroup accounting code 2014-06-09 17:20:49 -07:00
extent-buffer-tests.c btrfs: unify extent buffer allocation api 2014-12-12 18:26:55 +01:00
extent-io-tests.c Btrfs: use linux/sizes.h to represent constants 2016-01-07 14:38:02 +01:00
free-space-tests.c Btrfs: use linux/sizes.h to represent constants 2016-01-07 14:38:02 +01:00
inode-tests.c Btrfs: use linux/sizes.h to represent constants 2016-01-07 14:38:02 +01:00
qgroup-tests.c btrfs: qgroup: Switch self test to extent-oriented qgroup mechanism. 2015-06-10 09:26:05 -07:00