Commit f2fec3e9 authored by Gou Hao's avatar Gou Hao Committed by Theodore Ts'o
Browse files

ext4: delete redundant calculations in ext4_mb_get_buddy_page_lock()



'blocks_per_page' is always 1 after 'if (blocks_per_page >= 2)',
'pnum' and 'block' are equal in this case.

Signed-off-by: default avatarGou Hao <gouhao@uniontech.com>
Reviewed-by: default avatarJan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20231024035215.29474-1-gouhao@uniontech.com


Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
parent 665d3e0a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment