xfs: check _btree_check_block value
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 17 Jul 2017 21:30:45 +0000 (14:30 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 20 Jul 2017 21:42:32 +0000 (14:42 -0700)
commit1e86eabe73b73c82e1110c746ed3ec6d5e1c0a0d
tree3ddac329b334e7c68f428cd816db71a5ecbb3edc
parent5771a8c08880cdca3bfb4a3fc6d309d6bba20877
xfs: check _btree_check_block value

Check the _btree_check_block return value for the firstrec and lastrec
functions, since we have the ability to signal that the repositioning
did not succeed.

Fixes-coverity-id: 114067
Fixes-coverity-id: 114068
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
fs/xfs/libxfs/xfs_btree.c