|
@@ -9178,16 +9178,11 @@ void btrfs_destroy_cachep(void)
|
|
|
* destroy cache.
|
|
|
*/
|
|
|
rcu_barrier();
|
|
|
- if (btrfs_inode_cachep)
|
|
|
- kmem_cache_destroy(btrfs_inode_cachep);
|
|
|
- if (btrfs_trans_handle_cachep)
|
|
|
- kmem_cache_destroy(btrfs_trans_handle_cachep);
|
|
|
- if (btrfs_transaction_cachep)
|
|
|
- kmem_cache_destroy(btrfs_transaction_cachep);
|
|
|
- if (btrfs_path_cachep)
|
|
|
- kmem_cache_destroy(btrfs_path_cachep);
|
|
|
- if (btrfs_free_space_cachep)
|
|
|
- kmem_cache_destroy(btrfs_free_space_cachep);
|
|
|
+ kmem_cache_destroy(btrfs_inode_cachep);
|
|
|
+ kmem_cache_destroy(btrfs_trans_handle_cachep);
|
|
|
+ kmem_cache_destroy(btrfs_transaction_cachep);
|
|
|
+ kmem_cache_destroy(btrfs_path_cachep);
|
|
|
+ kmem_cache_destroy(btrfs_free_space_cachep);
|
|
|
}
|
|
|
|
|
|
int btrfs_init_cachep(void)
|