]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ext4: add FALLOC_FL_WRITE_ZEROES support
authorZhang Yi <yi.zhang@huawei.com>
Thu, 19 Jun 2025 11:18:06 +0000 (19:18 +0800)
committerChristian Brauner <brauner@kernel.org>
Mon, 23 Jun 2025 10:45:14 +0000 (12:45 +0200)
commitf4265b8d32c49ff95711e6fef7d05245a2905b30
treee8420d212f12379e272fa36e4cf03493a83f771c
parent912b6038fe5c985fac06285f8019fd74cab67e81
ext4: add FALLOC_FL_WRITE_ZEROES support

Add support for FALLOC_FL_WRITE_ZEROES if the underlying device enable
the unmap write zeroes operation. This first allocates blocks as
unwritten, then issues a zero command outside of the running journal
handle, and finally converts them to a written state.

Signed-off-by: Zhang Yi <yi.zhang@huawei.com>
Link: https://lore.kernel.org/20250619111806.3546162-10-yi.zhang@huaweicloud.com
Reviewed-by: "Martin K. Petersen" <martin.petersen@oracle.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/ext4/extents.c
include/trace/events/ext4.h