]> git.baikalelectronics.ru Git - kernel.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)
commitb7a1d3377e1f9156b00fdc00e12f02c90a15a3f4
treed42f1ab5c842f8b0e2955e6ef9ead2af690c20ff
parentf829348e1440b397277c4b30f943de83eba4380e
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