]> git.baikalelectronics.ru Git - kernel.git/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)
commit0a1363c35d4623c103590cdee9c0c1293f81fcc2
tree848eeafb722b9269569e94b6cfcdd6a95169fbd3
parentca40cc232a39a024b68de94189613494e47abe7a
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