ext4: add a hole extent entry in cache after punch
authorZhang Yi <yi.zhang@huawei.com>
Sat, 27 Jan 2024 01:58:03 +0000 (09:58 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 2 Feb 2024 04:59:21 +0000 (23:59 -0500)
commit9f1118223aa080021fe9751fa221590654d27669
tree61253ec2267afc9e381fdc6276fabd929640b3c3
parent6430dea07e85958fa87d0276c0c4388dd51e630b
ext4: add a hole extent entry in cache after punch

In order to cache hole extents in the extent status tree and keep the
hole length as long as possible, re-add a hole entry to the cache just
after punching a hole.

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