]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/btrfs/xattr.c
Merge branch 'cleanups' of git://repo.or.cz/linux-2.6/btrfs-unstable into inode_numbers
[karo-tx-linux.git] / fs / btrfs / xattr.c
index 4e5a32173c42c84a697caadeea0c5aaf581cd9e5..f3107e4b4d56a3d4b31a5f889ff321328e881978 100644 (file)
@@ -120,13 +120,13 @@ static int do_setxattr(struct btrfs_trans_handle *trans,
 
                ret = btrfs_delete_one_dir_name(trans, root, path, di);
                BUG_ON(ret);
-               btrfs_release_path(root, path);
+               btrfs_release_path(path);
 
                /* if we don't have a value then we are removing the xattr */
                if (!value)
                        goto out;
        } else {
-               btrfs_release_path(root, path);
+               btrfs_release_path(path);
 
                if (flags & XATTR_REPLACE) {
                        /* we couldn't find the attr to replace */