commit | 21e75ffe3cd2c99ca4ea5ecb25dcbeb6a8024c30 | [log] [tgz] |
---|---|---|
author | Jeff Mahoney <jeffm@suse.com> | Wed Feb 15 16:28:32 2017 -0500 |
committer | David Sterba <dsterba@suse.com> | Fri Feb 17 12:03:56 2017 +0100 |
tree | d42f1ab5c842f8b0e2955e6ef9ead2af690c20ff | |
parent | 77ab86bf1c64ab282f2230521c7d4d7f69ea3a3f [diff] |
btrfs: btrfs_truncate_free_space_cache always allocates path btrfs_truncate_free_space_cache always allocates a btrfs_path structure but only uses it when the caller passes a block group. Let's move the allocation and free into the conditional. Signed-off-by: Jeff Mahoney <jeffm@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>