]> git.proxmox.com Git - mirror_ubuntu-focal-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)
commit2c5773f102c9bb07d5328467f61f0a88f2f2892d
treed756b4acc043cd59ca1e89b394fb16c375683833
parent1383a7ed67490fb00d793e36c7a4d599ff88a64d
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