]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 3 Dec 2023 06:31:23 +0000 (07:31 +0100)
commit048e7f38b31ca5dc9d161b6dd267f437cfe3ee8a
tree29ee81f34eb98d182d9da0b5176f915c6318f3f0
parent580b9dd6ab0b0211c9508d6a055acadcf8858234
ext4: using nofail preallocation in ext4_es_insert_delayed_block()

[ Upstream commit 4a2d98447b37bcb68a7f06a1078edcb4f7e6ce7e ]

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>
Stable-dep-of: 8e387c89e96b ("ext4: make sure allocate pending entry not fail")
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/ext4/extents_status.c