Commit 426d15a
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: 21175ca ("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>1 parent 2d544ec commit 426d15a
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3973 | 3973 | | |
3974 | 3974 | | |
3975 | 3975 | | |
3976 | | - | |
3977 | | - | |
3978 | | - | |
| 3976 | + | |
| 3977 | + | |
| 3978 | + | |
3979 | 3979 | | |
3980 | 3980 | | |
3981 | 3981 | | |
| |||
0 commit comments