vfs: in iomap seek_{hole,data}, return -ENXIO for negative offsets
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 12 Jul 2017 17:26:47 +0000 (10:26 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 13 Jul 2017 21:55:05 +0000 (14:55 -0700)
commitd6ab17f261919d212ec0a9e33d01f46df0ec1fde
tree185ec0d398285b1c444df1de3f109860b000f3f5
parent0891f9971a3b00d243d5743cc78a628ad060adea
vfs: in iomap seek_{hole,data}, return -ENXIO for negative offsets

In the iomap implementations of SEEK_HOLE and SEEK_DATA, make sure we
return -ENXIO for negative offsets.

Inspired-by: Mateusz S <muttdini@gmail.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/iomap.c