Skip to content

Commit 9081771

Browse files
Kemeng Shitytso
authored andcommitted
ext4: remove unused return value of ext4_mb_release
Remove unused return value of ext4_mb_release. Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com> Reviewed-by: Jan Kara <jack@suse.cz> Link: https://lore.kernel.org/r/20240105092102.496631-6-shikemeng@huaweicloud.com Signed-off-by: Theodore Ts'o <tytso@mit.edu>
1 parent 97c32db commit 9081771

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

fs/ext4/ext4.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2912,7 +2912,7 @@ extern const struct seq_operations ext4_mb_seq_groups_ops;
29122912
extern const struct seq_operations ext4_mb_seq_structs_summary_ops;
29132913
extern int ext4_seq_mb_stats_show(struct seq_file *seq, void *offset);
29142914
extern int ext4_mb_init(struct super_block *);
2915-
extern int ext4_mb_release(struct super_block *);
2915+
extern void ext4_mb_release(struct super_block *);
29162916
extern ext4_fsblk_t ext4_mb_new_blocks(handle_t *,
29172917
struct ext4_allocation_request *, int *);
29182918
extern void ext4_discard_preallocations(struct inode *, unsigned int);

fs/ext4/mballoc.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3750,7 +3750,7 @@ static int ext4_mb_cleanup_pa(struct ext4_group_info *grp)
37503750
return count;
37513751
}
37523752

3753-
int ext4_mb_release(struct super_block *sb)
3753+
void ext4_mb_release(struct super_block *sb)
37543754
{
37553755
ext4_group_t ngroups = ext4_get_groups_count(sb);
37563756
ext4_group_t i;
@@ -3826,8 +3826,6 @@ int ext4_mb_release(struct super_block *sb)
38263826
}
38273827

38283828
free_percpu(sbi->s_locality_groups);
3829-
3830-
return 0;
38313829
}
38323830

38333831
static inline int ext4_issue_discard(struct super_block *sb,

0 commit comments

Comments
 (0)