]> git.baikalelectronics.ru Git - kernel.git/commit
iomap: warn on zero-length mappings
authorDarrick J. Wong <darrick.wong@oracle.com>
Fri, 26 Jan 2018 19:11:20 +0000 (11:11 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 29 Jan 2018 15:27:24 +0000 (07:27 -0800)
commite0756b8e25b88937a9ca01c944c7f5604d838a35
tree932813f135f482ab48791b3bb5a5dc61aa510564
parent6842cffbcc5ebaf64f56369e307ce6630c87d45e
iomap: warn on zero-length mappings

Don't let the iomap callback get away with feeding us a garbage zero
length mapping -- there was a bug in xfs that resulted in those leaking
out to hilarious effect.

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