xfs: sanitise error handling in xfs_alloc_fix_freelist
authorDave Chinner <dchinner@redhat.com>
Mon, 22 Jun 2015 00:13:19 +0000 (10:13 +1000)
committerDave Chinner <david@fromorbit.com>
Mon, 22 Jun 2015 00:13:19 +0000 (10:13 +1000)
The error handling is currently an inconsistent mess as every error
condition handles return values and releasing buffers individually.
Clean this up by using gotos and a sane error label stack.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/libxfs/xfs_alloc.c

Simple merge