diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2018-10-30 10:40:39 +1100 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2018-10-30 10:40:39 +1100 |
commit | 2c5773f102c9bb07d5328467f61f0a88f2f2892d (patch) | |
tree | d756b4acc043cd59ca1e89b394fb16c375683833 /mm/filemap.c | |
parent | 1383a7ed67490fb00d793e36c7a4d599ff88a64d (diff) | |
download | linux-2c5773f102c9bb07d5328467f61f0a88f2f2892d.tar.gz linux-2c5773f102c9bb07d5328467f61f0a88f2f2892d.tar.bz2 linux-2c5773f102c9bb07d5328467f61f0a88f2f2892d.zip |
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>
Diffstat (limited to 'mm/filemap.c')
0 files changed, 0 insertions, 0 deletions