diff options
author | Theodore Ts'o <tytso@mit.edu> | 2022-04-14 22:39:00 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2022-04-14 22:39:00 -0400 |
commit | eb7054212eac8b451d727bf079eae3db8c88f9d3 (patch) | |
tree | efbfe347a0bd8c4f437b6af7cdf8f03678ce3a63 /fs/ext4/super.c | |
parent | 85d825dbf4899a69407338bae462a59aa9a37326 (diff) | |
download | linux-stable-eb7054212eac8b451d727bf079eae3db8c88f9d3.tar.gz linux-stable-eb7054212eac8b451d727bf079eae3db8c88f9d3.tar.bz2 linux-stable-eb7054212eac8b451d727bf079eae3db8c88f9d3.zip |
ext4: update the cached overhead value in the superblock
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
Diffstat (limited to 'fs/ext4/super.c')
-rw-r--r-- | fs/ext4/super.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c index d08820fdfdee..1847b46af808 100644 --- a/fs/ext4/super.c +++ b/fs/ext4/super.c @@ -5618,6 +5618,8 @@ static int ext4_fill_super(struct super_block *sb, struct fs_context *fc) ext4_msg(sb, KERN_INFO, "mounted filesystem with%s. " "Quota mode: %s.", descr, ext4_quota_mode(sb)); + /* Update the s_overhead_clusters if necessary */ + ext4_update_overhead(sb); return 0; free_sbi: |