Dave Chinner 36de95567f xfs: kill xfs_buf_geterror()
Most of the callers are just calling ASSERT(!xfs_buf_geterror())
which means they are checking for bp->b_error == 0. If bp is null in
this case, we will assert fail, and hence it's no different in
result to oopsing because of a null bp. In some cases, errors have
already been checked for or the function returning the buffer can't
return a buffer with an error, so it's just a redundant assert.
Either way, the assert can either be removed.

The other two non-assert callers can just test for a buffer and
error properly.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dave Chinner <david@fromorbit.com>
2014-06-06 16:02:12 +10:00
..
2013-05-07 18:45:36 -05:00
2014-03-07 16:19:14 +11:00
2013-11-06 16:31:27 -06:00
2013-05-07 18:45:36 -05:00
2011-08-12 16:21:35 -05:00
2011-08-12 16:21:35 -05:00
2012-11-19 20:11:24 -06:00
2014-06-06 16:02:12 +10:00
2013-08-12 16:53:39 -05:00
2014-06-06 16:02:12 +10:00
2014-06-06 16:02:12 +10:00
2014-06-06 16:02:12 +10:00
2012-11-19 20:11:24 -06:00
2011-08-12 16:21:35 -05:00
2014-06-06 16:02:12 +10:00
2014-02-27 15:21:07 +11:00
2011-08-12 16:21:35 -05:00
2014-06-06 16:02:12 +10:00
2013-09-12 16:13:41 -07:00
2012-05-14 16:20:54 -05:00
2011-08-12 16:21:35 -05:00
2014-04-01 23:19:15 -04:00
2013-08-12 16:56:06 -05:00
2014-02-27 15:21:07 +11:00
2014-06-06 16:02:12 +10:00
2013-05-07 18:45:36 -05:00
2014-06-06 16:02:12 +10:00
2014-01-06 13:50:06 -06:00
2012-10-17 12:01:25 -05:00
2013-11-06 12:41:51 -06:00
2013-12-04 14:11:05 -06:00
2013-05-07 18:45:36 -05:00