diff options
author | Kemeng Shi <[email protected]> | 2023-06-03 23:03:13 +0800 |
---|---|---|
committer | Theodore Ts'o <[email protected]> | 2023-06-15 00:02:10 -0400 |
commit | 1eff590489a213a213c57d96b86f48b32cdf8c3a (patch) | |
tree | e06eca260ee09de5c9c727b6e712909976d689f6 /drivers/fpga/fpga-mgr.c | |
parent | c3defd99d58cbdd132bd197714e5523dac976b66 (diff) |
ext4: add EXT4_MB_HINT_GOAL_ONLY test in ext4_mb_use_preallocated
ext4_mb_use_preallocated will ignore the demand to alloc goal blocks,
although the EXT4_MB_HINT_GOAL_ONLY is requested.
For group pa, ext4_mb_group_or_file will not set EXT4_MB_HINT_GROUP_ALLOC
if EXT4_MB_HINT_GOAL_ONLY is set. So we will not alloc goal blocks from
group pa if EXT4_MB_HINT_GOAL_ONLY is set.
For inode pa, ext4_mb_pa_goal_check is added to check if free extent in
found inode pa meets goal blocks when EXT4_MB_HINT_GOAL_ONLY is set.
Signed-off-by: Kemeng Shi <[email protected]>
Suggested-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