aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/fast_commit.h
diff options
context:
space:
mode:
authorOjaswin Mujoo <[email protected]>2022-03-08 09:52:00 +0000
committerTheodore Ts'o <[email protected]>2022-03-13 01:54:19 +0000
commit27b38686a3bb601db48901dbc4e2fc5d77ffa2c1 (patch)
tree6ec7f459bc624479c34b401b09dcef4af261b38f /fs/ext4/fast_commit.h
parentext4: don't BUG if someone dirty pages without asking ext4 first (diff)
downloadkernel-27b38686a3bb601db48901dbc4e2fc5d77ffa2c1.tar.gz
kernel-27b38686a3bb601db48901dbc4e2fc5d77ffa2c1.zip
ext4: make mb_optimize_scan option work with set/unset mount cmd
After moving to the new mount API, mb_optimize_scan mount option handling was not working as expected due to the parsed value always being overwritten by default. Refactor and fix this to the expected behavior described below: * mb_optimize_scan=1 - On * mb_optimize_scan=0 - Off * mb_optimize_scan not passed - On if no. of BGs > threshold else off * Remounts retain previous value unless we explicitly pass the option with a new value Fixes: cebe85d570cf ("ext4: switch to the new mount api") Cc: [email protected] Reported-by: Ritesh Harjani <[email protected]> Signed-off-by: Ojaswin Mujoo <[email protected]> Reviewed-by: Ritesh Harjani <[email protected]> Link: https://lore.kernel.org/r/c98970fe99f26718586d02e942f293300fb48ef3.1646732698.git.ojaswin@linux.ibm.com Signed-off-by: Theodore Ts'o <[email protected]>
Diffstat (limited to 'fs/ext4/fast_commit.h')
0 files changed, 0 insertions, 0 deletions