diff options
author | Zhang Yi <yi.zhang@huawei.com> | 2025-04-23 11:52:49 +0300 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2025-05-14 17:42:12 +0300 |
commit | 53ce42accd2002cc490fc86000ac532530507a74 (patch) | |
tree | 4bbc1e293a0ef1f538188c6ffac50b76cd93f5f6 /fs/ext4/fast_commit.c | |
parent | 227cb4ca5a6502164f850d22aec3104d7888b270 (diff) | |
download | linux-53ce42accd2002cc490fc86000ac532530507a74.tar.xz |
ext4: ext4: unify EXT4_EX_NOCACHE|NOFAIL flags in ext4_ext_remove_space()
When removing space, we should use EXT4_EX_NOCACHE because we don't
need to cache extents, and we should also use EXT4_EX_NOFAIL to prevent
metadata inconsistencies that may arise from memory allocation failures.
While ext4_ext_remove_space() already uses these two flags in most
places, they are missing in ext4_ext_search_right() and
read_extent_tree_block() calls. Unify the flags to ensure consistent
behavior throughout the extent removal process.
Signed-off-by: Zhang Yi <yi.zhang@huawei.com>
Link: https://patch.msgid.link/20250423085257.122685-2-yi.zhang@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/fast_commit.c')
0 files changed, 0 insertions, 0 deletions