btrfs: clenaup: don't call btrfs_release_path before free_path
authorDavid Sterba <dsterba@suse.cz>
Wed, 5 Feb 2014 01:11:25 +0000 (02:11 +0100)
committerChris Mason <clm@fb.com>
Wed, 17 Sep 2014 20:37:08 +0000 (13:37 -0700)
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/relocation.c

index 65245a07275baa37e8089e5e0901c924193d12da..b3329ad34522886869108ec4938d6e66fe923520 100644 (file)
@@ -4096,7 +4096,6 @@ static int __insert_orphan_inode(struct btrfs_trans_handle *trans,
        btrfs_set_inode_flags(leaf, item, BTRFS_INODE_NOCOMPRESS |
                                          BTRFS_INODE_PREALLOC);
        btrfs_mark_buffer_dirty(leaf);
-       btrfs_release_path(path);
 out:
        btrfs_free_path(path);
        return ret;