xfs: cleanup xfs_rename error handling
authorDave Chinner <dchinner@redhat.com>
Wed, 25 Mar 2015 03:05:43 +0000 (14:05 +1100)
committerDave Chinner <david@fromorbit.com>
Wed, 25 Mar 2015 03:05:43 +0000 (14:05 +1100)
The jump labels are ambiguous and unclear and some of the error
paths are used inconsistently. Rules for error jumps are:

- use out_trans_cancel for unmodified transaction context
- use out_bmap_cancel on ENOSPC errors
- use out_trans_abort when transaction is likely to be dirty.

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

Simple merge