ext4: using nofail preallocation in ext4_es_insert_delayed_block()
authorBaokun Li <libaokun1@huawei.com>
Mon, 24 Apr 2023 03:38:41 +0000 (11:38 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 26 Jun 2023 23:35:12 +0000 (19:35 -0400)
commit4a2d98447b37bcb68a7f06a1078edcb4f7e6ce7e
tree9323653bec961869e1572e51d949ae4b6aa7d6d2
parente9fe2b882bd5b26b987c9ba110c2222796f72af5
ext4: using nofail preallocation in ext4_es_insert_delayed_block()

Similar to in ext4_es_remove_extent(), we use a no-fail preallocation
to avoid inconsistencies, except that here we may have to preallocate
two extent_status.

Suggested-by: Jan Kara <jack@suse.cz>
Signed-off-by: Baokun Li <libaokun1@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20230424033846.4732-8-libaokun1@huawei.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/extents_status.c