]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit19ecf79596417a83a7b989c84cff4756a31a76d9
tree45ab482f3fa6896fc63051c356399d45e5ea8140
parentde5ab6c48de74c8f5fdf4c5b6aa2601a34753220
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