btrfs-tests.c (8260edba67a2e6bd5e709d32188e23aa22cb4a38) | btrfs-tests.c (bd647ce385ec110fe7796267b6555873e48e44eb) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (C) 2013 Fusion IO. All rights reserved. 4 */ 5 6#include <linux/fs.h> 7#include <linux/mount.h> 8#include <linux/pseudo_fs.h> --- 179 unchanged lines hidden (view full) --- 188 list_for_each_entry_safe(dev, tmp, &fs_info->fs_devices->devices, 189 dev_list) { 190 btrfs_free_dummy_device(dev); 191 } 192 btrfs_free_qgroup_config(fs_info); 193 btrfs_free_fs_roots(fs_info); 194 cleanup_srcu_struct(&fs_info->subvol_srcu); 195 kfree(fs_info->super_copy); | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (C) 2013 Fusion IO. All rights reserved. 4 */ 5 6#include <linux/fs.h> 7#include <linux/mount.h> 8#include <linux/pseudo_fs.h> --- 179 unchanged lines hidden (view full) --- 188 list_for_each_entry_safe(dev, tmp, &fs_info->fs_devices->devices, 189 dev_list) { 190 btrfs_free_dummy_device(dev); 191 } 192 btrfs_free_qgroup_config(fs_info); 193 btrfs_free_fs_roots(fs_info); 194 cleanup_srcu_struct(&fs_info->subvol_srcu); 195 kfree(fs_info->super_copy); |
196 btrfs_check_leaked_roots(fs_info); |
|
196 kfree(fs_info->fs_devices); 197 kfree(fs_info); 198} 199 200void btrfs_free_dummy_root(struct btrfs_root *root) 201{ 202 if (!root) 203 return; --- 102 unchanged lines hidden --- | 197 kfree(fs_info->fs_devices); 198 kfree(fs_info); 199} 200 201void btrfs_free_dummy_root(struct btrfs_root *root) 202{ 203 if (!root) 204 return; --- 102 unchanged lines hidden --- |