iomap: Change calling convention for zeroing
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 21 Sep 2020 15:58:42 +0000 (08:58 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 21 Sep 2020 15:59:27 +0000 (08:59 -0700)
commit81ee8e52a71c712dbe04994f1430cb4c88b87ad6
tree37eb6d637a39ee3bbf679e4ec182aeeab9b3c4af
parente25ba8cbfd16bb10df8d90a138c743676fb8ee40
iomap: Change calling convention for zeroing

Pass the full length to iomap_zero() and dax_iomap_zero(), and have
them return how many bytes they actually handled.  This is preparatory
work for handling THP, although it looks like DAX could actually take
advantage of it if there's a larger contiguous area.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/dax.c
fs/iomap/buffered-io.c
include/linux/dax.h