Make libxfs_readbufr stash the error value in b_error, which will make
the behavior consistent between regular and multi-mapping buffers.
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
pthread_self(), __FUNCTION__, bytes, error,
(long long)LIBXFS_BBTOOFF64(blkno), (long long)blkno, bp);
#endif
+ bp->b_error = error;
return error;
}
* contents. *cough* xfs_da_node_buf_ops *cough*.
*/
error = libxfs_readbufr(btp, blkno, bp, len, flags);
- if (error)
- bp->b_error = error;
- else
+ if (!error)
libxfs_readbuf_verify(bp, ops);
return bp;
}