]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit83e6104332d03c0a494e36f423077ee368b05d65
treeb2c9ee0b1dfe2a18145ddb4985049c56dd819906
parent0c125c3700e8b33fe7b6f0250992229fabdfbd8f
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