Skip to content

Commit 11fd1a5

Browse files
Kemeng Shitytso
authored andcommitted
ext4: remove unneeded return value of ext4_mb_release_context
Function ext4_mb_release_context always return 0 and the return value is never used. Just remove unneeded return value of ext4_mb_release_context. Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com> Reviewed-by: Jan Kara <jack@suse.cz> Link: https://lore.kernel.org/r/20240105092102.496631-4-shikemeng@huaweicloud.com Signed-off-by: Theodore Ts'o <tytso@mit.edu>
1 parent 438a35e commit 11fd1a5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

fs/ext4/mballoc.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5968,7 +5968,7 @@ static void ext4_mb_add_n_trim(struct ext4_allocation_context *ac)
59685968
/*
59695969
* release all resource we used in allocation
59705970
*/
5971-
static int ext4_mb_release_context(struct ext4_allocation_context *ac)
5971+
static void ext4_mb_release_context(struct ext4_allocation_context *ac)
59725972
{
59735973
struct ext4_sb_info *sbi = EXT4_SB(ac->ac_sb);
59745974
struct ext4_prealloc_space *pa = ac->ac_pa;
@@ -6005,7 +6005,6 @@ static int ext4_mb_release_context(struct ext4_allocation_context *ac)
60056005
if (ac->ac_flags & EXT4_MB_HINT_GROUP_ALLOC)
60066006
mutex_unlock(&ac->ac_lg->lg_mutex);
60076007
ext4_mb_collect_stats(ac);
6008-
return 0;
60096008
}
60106009

60116010
static int ext4_mb_discard_preallocations(struct super_block *sb, int needed)

0 commit comments

Comments
 (0)