summaryrefslogtreecommitdiff
path: root/fs/ext4/sysfs.c
diff options
context:
space:
mode:
authorHarshad Shirwadkar <harshadshirwadkar@gmail.com>2021-04-01 10:21:26 -0700
committerTheodore Ts'o <tytso@mit.edu>2021-04-09 11:34:59 -0400
commit4b68f6df105966f04f45f1eca0561b86f2b3551d (patch)
tree42ded997cc4aff8cd5c5404ebcd118bdccc3e492 /fs/ext4/sysfs.c
parenta6c75eaf11032f4a3d2b3ce2265a194ac6e4a7f0 (diff)
downloadlinux-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