Skip to content

Commit e564cd2

Browse files
naotakdave
authored andcommitted
btrfs: add cleanup function for btrfs_free_chunk_map
Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
1 parent 392431c commit e564cd2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

fs/btrfs/volumes.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -634,6 +634,7 @@ static inline void btrfs_free_chunk_map(struct btrfs_chunk_map *map)
634634
kfree(map);
635635
}
636636
}
637+
DEFINE_FREE(btrfs_free_chunk_map, struct btrfs_chunk_map *, btrfs_free_chunk_map(_T))
637638

638639
struct btrfs_balance_control {
639640
struct btrfs_balance_args data;

0 commit comments

Comments
 (0)