From: Dave Chinner Date: Wed, 25 Mar 2015 03:08:07 +0000 (+1100) Subject: xfs: make xfs_cross_rename() complete fully X-Git-Tag: omap-for-v4.2/o2_dc~34^2~4^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=eeacd3217b8fa8143f5dc27ded405790c74f01e8;p=pandora-kernel.git xfs: make xfs_cross_rename() complete fully Now that xfs_finish_rename() exists, there is no reason for xfs_cross_rename() to return to xfs_rename() to finish off the rename transaction. Drive the completion code into xfs_cross_rename() and handle all errors there so as to simplify the xfs_rename() code. Further, push the rename exchange target_ip check to early in the rename code so as to make the error handling easy and obviously correct. Signed-off-by: Dave Chinner Reviewed-by: Eric Sandeen Reviewed-by: Brian Foster Signed-off-by: Dave Chinner --- Reading git-diff-tree failed