Commit 07be778c authored by Srivathsa Dara's avatar Srivathsa Dara Committed by Theodore Ts'o
Browse files

ext4: enable meta_bg only when new desc blocks are needed



This patch addresses an issue observed when resize_inode is disabled
and an online extension of a filesysyem is performed. When a filesystem
is expanded to a size that does not require a addition of a new
descriptor block, the meta_bg feature is being enabled even though no
part of the filesystem uses this layout.

This patch ensures that the meta_bg feature is only enabled if
any of the added block groups utilize meta_bg layout.

Signed-off-by: default avatarSrivathsa Dara <srivathsa.d.dara@oracle.com>
Link: https://lore.kernel.org/r/20240227131329.2608466-1-srivathsa.d.dara@oracle.com


Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
parent 0efcd739
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment