]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ext4: don't pass full mapping flags to ext4_es_insert_extent()
authorZhang Yi <yi.zhang@huawei.com>
Fri, 6 Sep 2024 06:14:01 +0000 (14:14 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 13 Nov 2024 04:54:14 +0000 (23:54 -0500)
commita90825898becb730377b157884c82a725f1d3ffa
treee300340dabbfadc6bb063c0673b82f1c8ccac43f
parent667de03a3b5eab4ccf532c6e399fe3488a1db58b
ext4: don't pass full mapping flags to ext4_es_insert_extent()

When converting a delalloc extent in ext4_es_insert_extent(), since we
only want to pass the info of whether the quota has already been claimed
if the allocation is a direct allocation from ext4_map_create_blocks(),
there is no need to pass full mapping flags, so changes to just pass
whether the EXT4_GET_BLOCKS_DELALLOC_RESERVE bit is set.

Suggested-by: Jan Kara <jack@suse.cz>
Signed-off-by: Zhang Yi <yi.zhang@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://patch.msgid.link/20240906061401.2980330-1-yi.zhang@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/extents.c
fs/ext4/extents_status.c
fs/ext4/extents_status.h
fs/ext4/inode.c