diff options
author | Harshad Shirwadkar <harshadshirwadkar@gmail.com> | 2021-04-01 10:21:26 -0700 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2021-04-09 11:34:59 -0400 |
commit | 4b68f6df105966f04f45f1eca0561b86f2b3551d (patch) | |
tree | 42ded997cc4aff8cd5c5404ebcd118bdccc3e492 /fs/ext4/sysfs.c | |
parent | a6c75eaf11032f4a3d2b3ce2265a194ac6e4a7f0 (diff) | |
download | linux-4b68f6df105966f04f45f1eca0561b86f2b3551d.tar.gz linux-4b68f6df105966f04f45f1eca0561b86f2b3551d.tar.bz2 linux-4b68f6df105966f04f45f1eca0561b86f2b3551d.zip |
ext4: add MB_NUM_ORDERS macro
A few arrays in mballoc.c use the total number of valid orders as
their size. Currently, this value is set as "sb->s_blocksize_bits +
2". This makes code harder to read. So, instead add a new macro
MB_NUM_ORDERS(sb) to make the code more readable.
Signed-off-by: Harshad Shirwadkar <harshadshirwadkar@gmail.com>
Reviewed-by: Andreas Dilger <adilger@dilger.ca>
Reviewed-by: Ritesh Harjani <ritesh.list@gmail.com>
Link: https://lore.kernel.org/r/20210401172129.189766-5-harshadshirwadkar@gmail.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/sysfs.c')
0 files changed, 0 insertions, 0 deletions