]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: correct the judgment of BUG in ext4_mb_normalize_request
authorBaokun Li <libaokun1@huawei.com>
Sat, 28 May 2022 11:00:16 +0000 (19:00 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 18 Jun 2022 23:35:57 +0000 (19:35 -0400)
commitbd32867943b6d3bc47847990f27e1eba70ca771b
tree8f5c001c273f043f954576f9917196398672e05b
parent7c2502688af78af7ad85e2c2674d4a518d9a6827
ext4: correct the judgment of BUG in ext4_mb_normalize_request

ext4_mb_normalize_request() can move logical start of allocated blocks
to reduce fragmentation and better utilize preallocation. However logical
block requested as a start of allocation (ac->ac_o_ex.fe_logical) should
always be covered by allocated blocks so we should check that by
modifying and to or in the assertion.

Signed-off-by: Baokun Li <libaokun1@huawei.com>
Reviewed-by: Ritesh Harjani <ritesh.list@gmail.com>
Link: https://lore.kernel.org/r/20220528110017.354175-3-libaokun1@huawei.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/mballoc.c