Whamcloud - gitweb
LU-14305 ldiskfs: add parameters for mb_c123_threshold
authorArtem Blagodarenko <artem.blagodarenko@hpe.com>
Thu, 8 Sep 2022 03:13:07 +0000 (23:13 -0400)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 23 Sep 2022 16:30:59 +0000 (16:30 +0000)
commitd5d5cfdde2aab420b7678d1ccb2c58a8a17dcde9
tree25051192cb7f84e330d4e5cdf9572ed8fce32c7d
parente39d0ed2042e424bb289c03fb69c38d757a22881
LU-14305 ldiskfs: add parameters for mb_c123_threshold

Add mount options for /sys/fs/ldiskfs/*/mb_c[123]_threshold values
so that they can be set persistently via mount options.

The /sys/fs/ldiskfs/*/mb_c[123]_threshold values are always shown
rounded down to the next lower percentage value due to integer
division, since internal values are stored as blocks for efficiency.

Round up the values shown to the next percent to match what was
used to originally set these parameters.

Lustre-change: https://review.whamcloud.com/41193
Lustre-commit: c2fd5297b46c4973aeda4d4d02cbc7ca2faa0d50

Fixes: 95f8ae567749 ("LU-12103 ldiskfs: don't search large block range if disk full")
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Signed-off-by: Artem Blagodarenko <ablagodarenko@whamcloud.com>
Change-Id: Ie36a6667f8bca7481aa8179ab5b97c85d449d619
Reviewed-by: Artem Blagodarenko <artem.blagodarenko@hpe.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/41955
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/48499
ldiskfs/kernel_patches/patches/rhel7.6/ext4-simple-blockalloc.patch