iomap: fix the iomap_readpage_actor return value for inline data
authorChristoph Hellwig <hch@lst.de>
Wed, 11 Aug 2021 01:33:07 +0000 (18:33 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 17 Aug 2021 04:26:33 +0000 (21:26 -0700)
commit740499c78408f75c4e76feac848177cb0d0ccf4f
treeb2c9ee0b1dfe2a18145ddb4985049c56dd819906
parent1acd9e9c015b389aa3201a977454efb92e36806c
iomap: fix the iomap_readpage_actor return value for inline data

The actor should never return a larger value than the length that was
passed in.  The current code handles this gracefully, but the opcoming
iter model will be more picky.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
fs/iomap/buffered-io.c