Commit 2bf5eb2
ext4: improving calculation of 'fe_{len|start}' in mb_find_extent()
After first execution of mb_find_order_for_block():
'fe_start' is the value of 'block' passed in mb_find_extent().
'fe_len' is the difference between the length of order-chunk and
remainder of the block divided by order-chunk.
And 'next' does not require initialization after above modifications.
Signed-off-by: Gou Hao <gouhao@uniontech.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20231113082617.11258-1-gouhao@uniontech.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>1 parent c6bfd72 commit 2bf5eb2
1 file changed
Lines changed: 4 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1957 | 1957 | | |
1958 | 1958 | | |
1959 | 1959 | | |
1960 | | - | |
1961 | | - | |
| 1960 | + | |
1962 | 1961 | | |
1963 | 1962 | | |
1964 | 1963 | | |
| |||
1976 | 1975 | | |
1977 | 1976 | | |
1978 | 1977 | | |
1979 | | - | |
1980 | 1978 | | |
1981 | | - | |
1982 | | - | |
| 1979 | + | |
| 1980 | + | |
1983 | 1981 | | |
1984 | 1982 | | |
1985 | | - | |
1986 | | - | |
1987 | | - | |
1988 | | - | |
| 1983 | + | |
1989 | 1984 | | |
1990 | 1985 | | |
1991 | 1986 | | |
| |||
0 commit comments