Skip to content

Commit 820c280

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

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

fs/ext4/mballoc.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5307,7 +5307,7 @@ static void ext4_mb_new_preallocation(struct ext4_allocation_context *ac)
53075307
* the caller MUST hold group/inode locks.
53085308
* TODO: optimize the case when there are no in-core structures yet
53095309
*/
5310-
static noinline_for_stack int
5310+
static noinline_for_stack void
53115311
ext4_mb_release_inode_pa(struct ext4_buddy *e4b, struct buffer_head *bitmap_bh,
53125312
struct ext4_prealloc_space *pa)
53135313
{
@@ -5357,8 +5357,6 @@ ext4_mb_release_inode_pa(struct ext4_buddy *e4b, struct buffer_head *bitmap_bh,
53575357
*/
53585358
}
53595359
atomic_add(free, &sbi->s_mb_discarded);
5360-
5361-
return 0;
53625360
}
53635361

53645362
static noinline_for_stack int

0 commit comments

Comments
 (0)