ext4: remove unused group parameter in ext4_inode_bitmap_csum_set
authorKemeng Shi <shikemeng@huaweicloud.com>
Tue, 21 Feb 2023 20:30:25 +0000 (04:30 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 24 Mar 2023 03:00:08 +0000 (23:00 -0400)
Remove unused group parameter in ext4_inode_bitmap_csum_set.

Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20230221203027.2359920-3-shikemeng@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/bitmap.c
fs/ext4/ext4.h
fs/ext4/ialloc.c
fs/ext4/resize.c

index 3bb28fa..0186b89 100644 (file)
@@ -38,7 +38,7 @@ int ext4_inode_bitmap_csum_verify(struct super_block *sb,
        return provided == calculated;
 }
 
-void ext4_inode_bitmap_csum_set(struct super_block *sb, ext4_group_t group,
+void ext4_inode_bitmap_csum_set(struct super_block *sb,
                                struct ext4_group_desc *gdp,
                                struct buffer_head *bh, int sz)
 {
index 0ed009b..55f115e 100644 (file)
@@ -2676,7 +2676,7 @@ struct mmpd_data {
 
 /* bitmap.c */
 extern unsigned int ext4_count_free(char *bitmap, unsigned numchars);
-void ext4_inode_bitmap_csum_set(struct super_block *sb, ext4_group_t group,
+void ext4_inode_bitmap_csum_set(struct super_block *sb,
                                struct ext4_group_desc *gdp,
                                struct buffer_head *bh, int sz);
 int ext4_inode_bitmap_csum_verify(struct super_block *sb,
index 9082280..f422374 100644 (file)
@@ -327,7 +327,7 @@ void ext4_free_inode(handle_t *handle, struct inode *inode)
                if (percpu_counter_initialized(&sbi->s_dirs_counter))
                        percpu_counter_dec(&sbi->s_dirs_counter);
        }
-       ext4_inode_bitmap_csum_set(sb, block_group, gdp, bitmap_bh,
+       ext4_inode_bitmap_csum_set(sb, gdp, bitmap_bh,
                                   EXT4_INODES_PER_GROUP(sb) / 8);
        ext4_group_desc_csum_set(sb, block_group, gdp);
        ext4_unlock_group(sb, block_group);
@@ -852,7 +852,7 @@ int ext4_mark_inode_used(struct super_block *sb, int ino)
 
        ext4_free_inodes_set(sb, gdp, ext4_free_inodes_count(sb, gdp) - 1);
        if (ext4_has_group_desc_csum(sb)) {
-               ext4_inode_bitmap_csum_set(sb, group, gdp, inode_bitmap_bh,
+               ext4_inode_bitmap_csum_set(sb, gdp, inode_bitmap_bh,
                                           EXT4_INODES_PER_GROUP(sb) / 8);
                ext4_group_desc_csum_set(sb, group, gdp);
        }
@@ -1222,7 +1222,7 @@ got:
                }
        }
        if (ext4_has_group_desc_csum(sb)) {
-               ext4_inode_bitmap_csum_set(sb, group, gdp, inode_bitmap_bh,
+               ext4_inode_bitmap_csum_set(sb, gdp, inode_bitmap_bh,
                                           EXT4_INODES_PER_GROUP(sb) / 8);
                ext4_group_desc_csum_set(sb, group, gdp);
        }
index 6b91443..607a1af 100644 (file)
@@ -1318,7 +1318,7 @@ static int ext4_set_bitmap_checksums(struct super_block *sb,
        bh = ext4_get_bitmap(sb, group_data->inode_bitmap);
        if (!bh)
                return -EIO;
-       ext4_inode_bitmap_csum_set(sb, group, gdp, bh,
+       ext4_inode_bitmap_csum_set(sb, gdp, bh,
                                   EXT4_INODES_PER_GROUP(sb) / 8);
        brelse(bh);