xfs: simplify xfs_file_iomap_begin
authorChristoph Hellwig <hch@lst.de>
Tue, 16 Aug 2016 22:44:52 +0000 (08:44 +1000)
committerDave Chinner <david@fromorbit.com>
Tue, 16 Aug 2016 22:44:52 +0000 (08:44 +1000)
commitb95a21271b30544a9fb992269d79ed1e1978e023
treef588bd7b73544d470b4f23389f36c1de5889cce1
parentf20ac7ab17fcf7046bd9bc4166faf9580f713afd
xfs: simplify xfs_file_iomap_begin

We'll never get nimap == 0 for a successful return from xfs_bmapi_read,
so don't try to handle it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_iomap.c
fs/xfs/xfs_trace.h