]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
block: add FALLOC_FL_WRITE_ZEROES support
authorZhang Yi <yi.zhang@huawei.com>
Thu, 19 Jun 2025 11:18:05 +0000 (19:18 +0800)
committerChristian Brauner <brauner@kernel.org>
Mon, 23 Jun 2025 10:45:14 +0000 (12:45 +0200)
commit912b6038fe5c985fac06285f8019fd74cab67e81
treefff3437c079a6b9433bd300eaf13ef4954af859f
parent562108d56bd9b93bec64fe9333a805b129c13001
block: add FALLOC_FL_WRITE_ZEROES support

Add support for FALLOC_FL_WRITE_ZEROES, if the block device enables the
unmap write zeroes operation, it will issue a write zeroes command.

Signed-off-by: Zhang Yi <yi.zhang@huawei.com>
Link: https://lore.kernel.org/20250619111806.3546162-9-yi.zhang@huaweicloud.com
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: "Martin K. Petersen" <martin.petersen@oracle.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
block/fops.c