xfs: fix error handling at xfs_inumbers
authorJie Liu <jeff.liu@oracle.com>
Thu, 24 Jul 2014 02:18:47 +0000 (12:18 +1000)
committerDave Chinner <david@fromorbit.com>
Thu, 24 Jul 2014 02:18:47 +0000 (12:18 +1000)
commitc7cb51dcb0a38624d42eeabb38502fa54a4d774b
tree5a4fa186782c9e3023056e2e34a6bdf0779fedde
parent549fa00679dd14beaaa685486549c637e8e02182
xfs: fix error handling at xfs_inumbers

From: Jie Liu <jeff.liu@oracle.com>

To fetch the file system number tables, we currently just ignore the
errors and proceed to loop over the next AG or bump agino to the next
chunk in case of btree operations failed, that is not properly because
those errors might hint us potential file system problems.

This patch rework xfs_inumbers() to handle the btree operation errors
as well as the loop conditions.

Signed-off-by: Jie Liu <jeff.liu@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/xfs_itable.c