]> git.baikalelectronics.ru Git - kernel.git/commit
vfs: exit early from zero length remap operations
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 29 Oct 2018 23:40:39 +0000 (10:40 +1100)
committerDave Chinner <david@fromorbit.com>
Mon, 29 Oct 2018 23:40:39 +0000 (10:40 +1100)
commit65589adc7c71928c3275d5b795f204eb4b6eb0f1
treed756b4acc043cd59ca1e89b394fb16c375683833
parent5dc995ea29d26f78743207449972fe7a542dd543
vfs: exit early from zero length remap operations

If a remap caller asks us to remap to the source file's EOF and the
source file length leaves us with a zero byte request, exit early.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/read_write.c