transaction.c (9c343784c4328781129bcf9e671645f69fe4b38a) | transaction.c (6b7304af62d02d77d740defd4cfddf2ef3188067) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (C) 2007 Oracle. All rights reserved. 4 */ 5 6#include <linux/fs.h> 7#include <linux/slab.h> 8#include <linux/sched.h> --- 128 unchanged lines hidden (view full) --- 137 */ 138 while (!list_empty(&transaction->deleted_bgs)) { 139 struct btrfs_block_group *cache; 140 141 cache = list_first_entry(&transaction->deleted_bgs, 142 struct btrfs_block_group, 143 bg_list); 144 list_del_init(&cache->bg_list); | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Copyright (C) 2007 Oracle. All rights reserved. 4 */ 5 6#include <linux/fs.h> 7#include <linux/slab.h> 8#include <linux/sched.h> --- 128 unchanged lines hidden (view full) --- 137 */ 138 while (!list_empty(&transaction->deleted_bgs)) { 139 struct btrfs_block_group *cache; 140 141 cache = list_first_entry(&transaction->deleted_bgs, 142 struct btrfs_block_group, 143 bg_list); 144 list_del_init(&cache->bg_list); |
145 btrfs_put_block_group_trimming(cache); | 145 btrfs_unfreeze_block_group(cache); |
146 btrfs_put_block_group(cache); 147 } 148 WARN_ON(!list_empty(&transaction->dev_update_list)); 149 kfree(transaction); 150 } 151} 152 153static noinline void switch_commit_roots(struct btrfs_trans_handle *trans) --- 2313 unchanged lines hidden --- | 146 btrfs_put_block_group(cache); 147 } 148 WARN_ON(!list_empty(&transaction->dev_update_list)); 149 kfree(transaction); 150 } 151} 152 153static noinline void switch_commit_roots(struct btrfs_trans_handle *trans) --- 2313 unchanged lines hidden --- |