Btrfs: return error to caller when btrfs_unlink() failes
authorTsutomu Itoh <t-itoh@jp.fujitsu.com>
Tue, 19 Jul 2011 07:27:20 +0000 (07:27 +0000)
committerChris Mason <chris.mason@oracle.com>
Mon, 1 Aug 2011 18:30:42 +0000 (14:30 -0400)
commitb532402e4d147e4f409c4e7f50d4413e8450101d
tree0c196fd362d03243704a47e69e41c13acd323bd0
parenta0f98dde11a1afe9fbf5c98f57968e086e98b6f5
Btrfs: return error to caller when btrfs_unlink() failes

When btrfs_unlink_inode() and btrfs_orphan_add() in btrfs_unlink()
are error, the error code is returned to the caller instead of
BUG_ON().

Signed-off-by: Tsutomu Itoh <t-itoh@jp.fujitsu.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/extent-tree.c
fs/btrfs/inode.c