]> git.karo-electronics.de Git - karo-tx-linux.git/commit
btrfs: btrfs_truncate_free_space_cache always allocates path
authorJeff Mahoney <jeffm@suse.com>
Wed, 15 Feb 2017 21:28:32 +0000 (16:28 -0500)
committerDavid Sterba <dsterba@suse.com>
Fri, 17 Feb 2017 11:03:56 +0000 (12:03 +0100)
commit21e75ffe3cd2c99ca4ea5ecb25dcbeb6a8024c30
treed42f1ab5c842f8b0e2955e6ef9ead2af690c20ff
parent77ab86bf1c64ab282f2230521c7d4d7f69ea3a3f
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>
fs/btrfs/free-space-cache.c