Skip to content

Commit f0374d8

Browse files
LiBaokun96tytso
authored andcommitted
ext4: remove unnecessary s_mb_last_start
Since stream allocation does not use ac->ac_f_ex.fe_start, it is set to -1 by default, so the no longer needed sbi->s_mb_last_start is removed. Signed-off-by: Baokun Li <[email protected]> Reviewed-by: Jan Kara <[email protected]> Reviewed-by: Ojaswin Mujoo <[email protected]> Reviewed-by: Zhang Yi <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Theodore Ts'o <[email protected]>
1 parent 35bfd4b commit f0374d8

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

fs/ext4/ext4.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1631,7 +1631,6 @@ struct ext4_sb_info {
16311631
unsigned int s_max_dir_size_kb;
16321632
/* where last allocation was done - for stream allocation */
16331633
unsigned long s_mb_last_group;
1634-
unsigned long s_mb_last_start;
16351634
unsigned int s_mb_prefetch;
16361635
unsigned int s_mb_prefetch_limit;
16371636
unsigned int s_mb_best_avail_max_trim_order;

fs/ext4/mballoc.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2171,7 +2171,6 @@ static void ext4_mb_use_best_found(struct ext4_allocation_context *ac,
21712171
if (ac->ac_flags & EXT4_MB_STREAM_ALLOC) {
21722172
spin_lock(&sbi->s_md_lock);
21732173
sbi->s_mb_last_group = ac->ac_f_ex.fe_group;
2174-
sbi->s_mb_last_start = ac->ac_f_ex.fe_start;
21752174
spin_unlock(&sbi->s_md_lock);
21762175
}
21772176
/*

0 commit comments

Comments
 (0)