ext4: update the cached overhead value in the superblock
authorTheodore Ts'o <tytso@mit.edu>
Fri, 15 Apr 2022 02:39:00 +0000 (22:39 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Apr 2022 12:41:16 +0000 (14:41 +0200)
commit5bbb7a75c32e28096d6768dc5febfa57ce9ee28f
treea528b8243a6ef21e2fe55d26fb01db40183f9388
parentb95e34bb7cca43afbe60d9727dd4ddc236da7a31
ext4: update the cached overhead value in the superblock

commit eb7054212eac8b451d727bf079eae3db8c88f9d3 upstream.

If we (re-)calculate the file system overhead amount and it's
different from the on-disk s_overhead_clusters value, update the
on-disk version since this can take potentially quite a while on
bigalloc file systems.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ext4/ext4.h
fs/ext4/ioctl.c
fs/ext4/super.c