]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: don't run ext4lazyinit for read-only filesystems
authorJosh Triplett <josh@joshtriplett.org>
Mon, 1 Aug 2022 03:24:53 +0000 (20:24 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 29 Sep 2022 14:38:57 +0000 (10:38 -0400)
commitcd8c60fdc5d595944a133b09b20ccadb607b75a3
tree6bdccb56012dd80329bd0dabe76ff12994ad3463
parent89f37c2a6ca461b86092c4d0e2c3279d358018fe
ext4: don't run ext4lazyinit for read-only filesystems

On a read-only filesystem, we won't invoke the block allocator, so we
don't need to prefetch the block bitmaps.

This avoids starting and running the ext4lazyinit thread at all on a
system with no read-write ext4 filesystems (for instance, a container VM
with read-only filesystems underneath an overlayfs).

Fixes: 401aed0afb3f ("ext4: make prefetch_block_bitmaps default")
Signed-off-by: Josh Triplett <josh@joshtriplett.org>
Reviewed-by: Lukas Czerner <lczerner@redhat.com>
Link: https://lore.kernel.org/r/48b41da1498fcac3287e2e06b660680646c1c050.1659323972.git.josh@joshtriplett.org
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/super.c