aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga/fpga-mgr.c
diff options
context:
space:
mode:
authorKemeng Shi <[email protected]>2023-06-03 23:03:15 +0800
committerTheodore Ts'o <[email protected]>2023-06-15 00:02:10 -0400
commit19a043bb1fd1b5cb2652ca33536c55e6c0a70df0 (patch)
treef9685a5e8330a5dd88e8d644a4b43c6eb59814fc /drivers/fpga/fpga-mgr.c
parent95a4c3c7e0342f553fed1ac70d10c2efc6bba3b1 (diff)
ext4: try all groups in ext4_mb_new_blocks_simple
ext4_mb_new_blocks_simple ignores the group before goal, so it will fail if free blocks reside in group before goal. Try all groups to avoid unexpected failure. Search finishes either if any free block is found or if no available blocks are found. Simpliy check "i >= max" to distinguish the above cases. Signed-off-by: Kemeng Shi <[email protected]> Suggested-by: Theodore Ts'o <[email protected]> Reviewed-by: Ojaswin Mujoo <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Theodore Ts'o <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions