ext4: use ext4_group_desc_free() in ext4_put_super() to save some duplicated code
authorJason Yan <yanaijie@huawei.com>
Thu, 23 Mar 2023 14:05:12 +0000 (22:05 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 15 Apr 2023 03:08:02 +0000 (23:08 -0400)
commit6ef684988816fdfa29ceff260c97d725a489a942
tree7bae9dcc191eab83b65d8cd4949305586beee064
parent1f79467c8a6be64940a699de1bd43338a6dd9fdd
ext4: use ext4_group_desc_free() in ext4_put_super() to save some duplicated code

The only difference here is that ->s_group_desc and ->s_flex_groups share
the same rcu read lock here but it is not necessary. In other places they
do not share the lock at all.

Signed-off-by: Jason Yan <yanaijie@huawei.com>
Link: https://lore.kernel.org/r/20230323140517.1070239-4-yanaijie@huawei.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/super.c