diff options
Diffstat (limited to 'fs/btrfs/ctree.h')
-rw-r--r-- | fs/btrfs/ctree.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/fs/btrfs/ctree.h b/fs/btrfs/ctree.h index f63c9b3f6e08..5181c53c1124 100644 --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h | |||
@@ -936,8 +936,8 @@ struct btrfs_fs_info { | |||
936 | wait_queue_head_t transaction_blocked_wait; | 936 | wait_queue_head_t transaction_blocked_wait; |
937 | wait_queue_head_t async_submit_wait; | 937 | wait_queue_head_t async_submit_wait; |
938 | 938 | ||
939 | struct btrfs_super_block super_copy; | 939 | struct btrfs_super_block *super_copy; |
940 | struct btrfs_super_block super_for_commit; | 940 | struct btrfs_super_block *super_for_commit; |
941 | struct block_device *__bdev; | 941 | struct block_device *__bdev; |
942 | struct super_block *sb; | 942 | struct super_block *sb; |
943 | struct inode *btree_inode; | 943 | struct inode *btree_inode; |
@@ -2387,6 +2387,18 @@ static inline int btrfs_fs_closing(struct btrfs_fs_info *fs_info) | |||
2387 | smp_mb(); | 2387 | smp_mb(); |
2388 | return fs_info->closing; | 2388 | return fs_info->closing; |
2389 | } | 2389 | } |
2390 | static inline void free_fs_info(struct btrfs_fs_info *fs_info) | ||
2391 | { | ||
2392 | kfree(fs_info->delayed_root); | ||
2393 | kfree(fs_info->extent_root); | ||
2394 | kfree(fs_info->tree_root); | ||
2395 | kfree(fs_info->chunk_root); | ||
2396 | kfree(fs_info->dev_root); | ||
2397 | kfree(fs_info->csum_root); | ||
2398 | kfree(fs_info->super_copy); | ||
2399 | kfree(fs_info->super_for_commit); | ||
2400 | kfree(fs_info); | ||
2401 | } | ||
2390 | 2402 | ||
2391 | /* root-item.c */ | 2403 | /* root-item.c */ |
2392 | int btrfs_find_root_ref(struct btrfs_root *tree_root, | 2404 | int btrfs_find_root_ref(struct btrfs_root *tree_root, |