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/ext4.h | |
parent | 85d825dbf4899a69407338bae462a59aa9a37326 (diff) | |
download | lwn-eb7054212eac8b451d727bf079eae3db8c88f9d3.tar.gz lwn-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/ext4.h')
-rw-r--r-- | fs/ext4/ext4.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index 48dc2c3247ad..a743b1e3b89e 100644 --- a/fs/ext4/ext4.h +++ b/fs/ext4/ext4.h @@ -3068,6 +3068,7 @@ int ext4_fileattr_set(struct user_namespace *mnt_userns, struct dentry *dentry, struct fileattr *fa); int ext4_fileattr_get(struct dentry *dentry, struct fileattr *fa); extern void ext4_reset_inode_seed(struct inode *inode); +int ext4_update_overhead(struct super_block *sb); /* migrate.c */ extern int ext4_ext_migrate(struct inode *); |