ext4: delete redundant calculations in ext4_mb_get_buddy_page_lock()
authorGou Hao <gouhao@uniontech.com>
Tue, 24 Oct 2023 03:52:15 +0000 (11:52 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 5 Jan 2024 04:26:21 +0000 (23:26 -0500)
commitf2fec3e99a32d7c14dbf63c824f8286ebc94b18d
tree1f03a3e773b3fab132f954663e42501d89c203fe
parent665d3e0af4d35acf9a5f58dfd471bc27dbf55880
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: Gou Hao <gouhao@uniontech.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20231024035215.29474-1-gouhao@uniontech.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/mballoc.c