OSDN Git Service

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)
commit0c6dda7a1cbd587e48bcef1999875e29549c2b41
tree932813f135f482ab48791b3bb5a5dc61aa510564
parent4b4c1326fd7c7210d23d9dd3bfc51f2b6477bb9e
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