]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: update the s_overhead_clusters in the backup sb's when resizing
authorTheodore Ts'o <tytso@mit.edu>
Wed, 29 Jun 2022 04:00:26 +0000 (00:00 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 3 Aug 2022 03:52:19 +0000 (23:52 -0400)
commit9b77c3726913f8b4bd0c41aebcde4a0ef9c876e4
treef1bb61a29b7621879f723adbe24ea26a3a62d5ff
parent0f47fa7905b5c0deead08ac2d4830e7bd7ed8d8b
ext4: update the s_overhead_clusters in the backup sb's when resizing

When the EXT4_IOC_RESIZE_FS ioctl is complete, update the backup
superblocks.  We don't do this for the old-style resize ioctls since
they are quite ancient, and only used by very old versions of
resize2fs --- and we don't want to update the backup superblocks every
time EXT4_IOC_GROUP_ADD is called, since it might get called a lot.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Andreas Dilger <adilger@dilger.ca>
Link: https://lore.kernel.org/r/20220629040026.112371-2-tytso@mit.edu
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/ext4.h
fs/ext4/ioctl.c
fs/ext4/resize.c
fs/ext4/super.c