ext4: make ext4_da_map_blocks() buffer_head unaware
authorZhang Yi <yi.zhang@huawei.com>
Fri, 17 May 2024 12:40:05 +0000 (20:40 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 27 Jun 2024 22:04:50 +0000 (18:04 -0400)
commit8262fe9a902c8a7b68c8521ebe18360a9145bada
treea84980f97e402915b2e1e8646820ca165dca4d88
parent1850d76c1b781ad9c7dc3c4968fb40c1915231c0
ext4: make ext4_da_map_blocks() buffer_head unaware

After calling the ext4_da_map_blocks(), a delalloc extent state could
be identified through the EXT4_MAP_DELAYED flag in map. So factor out
buffer_head related handles in ext4_da_map_blocks(), make this function
buffer_head unaware and becomes a common helper, and also update the
stale function commtents, preparing for the iomap da write path in the
future.

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