mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-22 19:14:51 +00:00
ext4: simplify calculation of blkoff in ext4_mb_new_blocks_simple
[ Upstream commit253cacb0de] We try to allocate a block from goal in ext4_mb_new_blocks_simple. We only need get blkoff in first group with goal and set blkoff to 0 for the rest groups. Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com> Link: https://lore.kernel.org/r/20230303172120.3800725-21-shikemeng@huaweicloud.com Signed-off-by: Theodore Ts'o <tytso@mit.edu> Stable-dep-of:3f4830abd2("ext4: fix potential unnitialized variable") Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
00b079e990
commit
0d82a01cfa
1 changed files with 2 additions and 3 deletions
Loading…
Add table
Add a link
Reference in a new issue