]> git.hungrycats.org Git - linux/commitdiff
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)
committerZygo Blaxell <zblaxell@serenity.furryterror.org>
Wed, 3 Dec 2014 15:15:52 +0000 (10:15 -0500)
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
(cherry picked from commit c6f83c74fd647e8e31a9a42a76d895bce4a61a08)

fs/btrfs/relocation.c

index e208d40431df6416a19339aa7950012d99016019..b55ea3735a5ff2881f2f5f9c0eaa81c1e341f62d 100644 (file)
@@ -4128,7 +4128,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;