Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'ext4_for_linus_stable' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4

Pull ext4 fix from Ted Ts'o:
"Fix an ext4 regression which landed during the 6.4 merge window"

* tag 'ext4_for_linus_stable' of git://git.kernel.org/pub/scm/linux/kernel/git/tytso/ext4:
Revert "ext4: remove ac->ac_found > sbi->s_mb_min_to_scan dead check in ext4_mb_check_limits"

+15 -1
+15 -1
fs/ext4/mballoc.c
··· 2062 2062 if (bex->fe_len < gex->fe_len) 2063 2063 return; 2064 2064 2065 - if (finish_group) 2065 + if (finish_group || ac->ac_found > sbi->s_mb_min_to_scan) 2066 2066 ext4_mb_use_best_found(ac, e4b); 2067 2067 } 2068 2068 ··· 2073 2073 * previous found extent and if new one is better, then it's stored 2074 2074 * in the context. Later, the best found extent will be used, if 2075 2075 * mballoc can't find good enough extent. 2076 + * 2077 + * The algorithm used is roughly as follows: 2078 + * 2079 + * * If free extent found is exactly as big as goal, then 2080 + * stop the scan and use it immediately 2081 + * 2082 + * * If free extent found is smaller than goal, then keep retrying 2083 + * upto a max of sbi->s_mb_max_to_scan times (default 200). After 2084 + * that stop scanning and use whatever we have. 2085 + * 2086 + * * If free extent found is bigger than goal, then keep retrying 2087 + * upto a max of sbi->s_mb_min_to_scan times (default 10) before 2088 + * stopping the scan and using the extent. 2089 + * 2076 2090 * 2077 2091 * FIXME: real allocation policy is to be designed yet! 2078 2092 */