diff options
author | Kemeng Shi <shikemeng@huaweicloud.com> | 2023-06-03 18:03:13 +0300 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2023-06-15 07:02:10 +0300 |
commit | 1eff590489a213a213c57d96b86f48b32cdf8c3a (patch) | |
tree | e06eca260ee09de5c9c727b6e712909976d689f6 /fs/btrfs/export.h | |
parent | c3defd99d58cbdd132bd197714e5523dac976b66 (diff) | |
download | linux-1eff590489a213a213c57d96b86f48b32cdf8c3a.tar.xz |
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 <shikemeng@huaweicloud.com>
Suggested-by: Ojaswin Mujoo <ojaswin@linux.ibm.com>
Link: https://lore.kernel.org/r/20230603150327.3596033-6-shikemeng@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/btrfs/export.h')
0 files changed, 0 insertions, 0 deletions