ext4: make ext4_map_blocks() distinguish delalloc only extent
authorZhang Yi <yi.zhang@huawei.com>
Sat, 27 Jan 2024 01:58:04 +0000 (09:58 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 2 Feb 2024 04:59:21 +0000 (23:59 -0500)
commit874eaba96d39334fe9c729ff631e65523616d4d8
tree401e4a6a4340ae92b68473fb2f02a34a63f5829f
parent9f1118223aa080021fe9751fa221590654d27669
ext4: make ext4_map_blocks() distinguish delalloc only extent

Add a new map flag EXT4_MAP_DELAYED to indicate the mapping range is a
delayed allocated only (not unwritten) one, and making
ext4_map_blocks() can distinguish it, no longer mixing it with holes.

Signed-off-by: Zhang Yi <yi.zhang@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20240127015825.1608160-6-yi.zhang@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/ext4.h
fs/ext4/extents.c
fs/ext4/inode.c