]> git.itanic.dy.fi Git - linux-stable/commit
ext4: add prefetch_block_bitmaps mount option
authorTheodore Ts'o <tytso@mit.edu>
Fri, 17 Jul 2020 04:14:40 +0000 (00:14 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 7 Aug 2020 18:12:35 +0000 (14:12 -0400)
commit3d392b2676bf3199863a1e5efb2c087ad9d442a4
tree848eeafb722b9269569e94b6cfcdd6a95169fbd3
parentab74c7b23f3770935016e3eb3ecdf1e42b73efaa
ext4: add prefetch_block_bitmaps mount option

For file systems where we can afford to keep the buddy bitmaps cached,
we can speed up initial writes to large file systems by starting to
load the block allocation bitmaps as soon as the file system is
mounted.  This won't work well for _super_ large file systems, or
memory constrained systems, so we only enable this when it is
requested via a mount option.

Addresses-Google-Bug: 159488342
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Andreas Dilger <adilger@dilger.ca>
fs/ext4/ext4.h
fs/ext4/mballoc.c
fs/ext4/super.c
include/trace/events/ext4.h