Btrfs: fix check_path_shared so it returns the right value
authorJosef Bacik <josef@redhat.com>
Mon, 24 Jan 2011 21:43:18 +0000 (21:43 +0000)
committerChris Mason <chris.mason@oracle.com>
Fri, 28 Jan 2011 21:40:37 +0000 (16:40 -0500)
commitdedefd7215d3ec451291ca393e5c8e4c1882c8c6
tree45ab482f3fa6896fc63051c356399d45e5ea8140
parentabd30bb0af9d4671506502278e8631bed9e3c35c
Btrfs: fix check_path_shared so it returns the right value

When running xfstests 224 I kept getting ENOSPC when trying to remove the files,
and this is because we were returning ret from check_path_shared while it was
uninitalized, which isn't right.  Fix this to return 0 properly, and now
xfstests 224 doesn't freak out when it tries to clean itself up.  Thanks,

Signed-off-by: Josef Bacik <josef@redhat.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/inode.c