]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
direct-io: use memzero_page()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 12 Jun 2025 14:34:39 +0000 (15:34 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 10 Jul 2025 05:42:08 +0000 (22:42 -0700)
memzero_page() is the new name for zero_user().

Link: https://lkml.kernel.org/r/20250612143443.2848197-4-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Alex Markuze <amarkuze@redhat.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Ilya Dryomov <idryomov@gmail.com>
Cc: Ira Weiny <ira.weiny@intel.com>
Cc: Jens Axboe <axboe@kernel.dk>
Cc: Xiubo Li <xiubli@redhat.com>
Cc: Dan Carpenter <dan.carpenter@linaro.org>
Cc: Viacheslav Dubeyko <Slava.Dubeyko@ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/direct-io.c

index bbd05f1a21453b931f9e6f7547abbc3b577ff9f9..111958634def96e272d5469502b088545ced2b9d 100644 (file)
@@ -996,7 +996,7 @@ do_holes:
                                        dio_unpin_page(dio, page);
                                        goto out;
                                }
-                               zero_user(page, from, 1 << blkbits);
+                               memzero_page(page, from, 1 << blkbits);
                                sdio->block_in_file++;
                                from += 1 << blkbits;
                                dio->result += 1 << blkbits;