File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -5204,7 +5204,7 @@ static void ext4_mb_group_or_file(struct ext4_allocation_context *ac)
5204
5204
mutex_lock (& ac -> ac_lg -> lg_mutex );
5205
5205
}
5206
5206
5207
- static noinline_for_stack int
5207
+ static noinline_for_stack void
5208
5208
ext4_mb_initialize_context (struct ext4_allocation_context * ac ,
5209
5209
struct ext4_allocation_request * ar )
5210
5210
{
@@ -5253,8 +5253,6 @@ ext4_mb_initialize_context(struct ext4_allocation_context *ac,
5253
5253
(unsigned ) ar -> lleft , (unsigned ) ar -> pleft ,
5254
5254
(unsigned ) ar -> lright , (unsigned ) ar -> pright ,
5255
5255
inode_is_open_for_write (ar -> inode ) ? "" : "non-" );
5256
- return 0 ;
5257
-
5258
5256
}
5259
5257
5260
5258
static noinline_for_stack void
@@ -5591,11 +5589,7 @@ ext4_fsblk_t ext4_mb_new_blocks(handle_t *handle,
5591
5589
goto out ;
5592
5590
}
5593
5591
5594
- * errp = ext4_mb_initialize_context (ac , ar );
5595
- if (* errp ) {
5596
- ar -> len = 0 ;
5597
- goto out ;
5598
- }
5592
+ ext4_mb_initialize_context (ac , ar );
5599
5593
5600
5594
ac -> ac_op = EXT4_MB_HISTORY_PREALLOC ;
5601
5595
seq = this_cpu_read (discard_pa_seq );
You can’t perform that action at this time.
0 commit comments