Skip to content

Commit 2042794

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

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

fs/ext4/mballoc.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5359,7 +5359,7 @@ ext4_mb_release_inode_pa(struct ext4_buddy *e4b, struct buffer_head *bitmap_bh,
53595359
atomic_add(free, &sbi->s_mb_discarded);
53605360
}
53615361

5362-
static noinline_for_stack int
5362+
static noinline_for_stack void
53635363
ext4_mb_release_group_pa(struct ext4_buddy *e4b,
53645364
struct ext4_prealloc_space *pa)
53655365
{
@@ -5373,13 +5373,11 @@ ext4_mb_release_group_pa(struct ext4_buddy *e4b,
53735373
if (unlikely(group != e4b->bd_group && pa->pa_len != 0)) {
53745374
ext4_warning(sb, "bad group: expected %u, group %u, pa_start %llu",
53755375
e4b->bd_group, group, pa->pa_pstart);
5376-
return 0;
5376+
return;
53775377
}
53785378
mb_free_blocks(pa->pa_inode, e4b, bit, pa->pa_len);
53795379
atomic_add(pa->pa_len, &EXT4_SB(sb)->s_mb_discarded);
53805380
trace_ext4_mballoc_discard(sb, NULL, group, bit, pa->pa_len);
5381-
5382-
return 0;
53835381
}
53845382

53855383
/*

0 commit comments

Comments
 (0)