Whamcloud - gitweb
LU-14305 ldiskfs: add parameters for mb_c123_threshold 93/41193/10
authorAndreas Dilger <adilger@whamcloud.com>
Wed, 6 Jan 2021 01:46:03 +0000 (18:46 -0700)
committerOleg Drokin <green@whamcloud.com>
Fri, 26 Feb 2021 21:07:17 +0000 (21:07 +0000)
commitc2fd5297b46c4973aeda4d4d02cbc7ca2faa0d50
tree4709259ce3de8c52965e91b5a59d0e194b3da06a
parentf7f0b104bcf3827ffe9025a2347f0147c2103809
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.

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