diff options
Diffstat (limited to 'fs/btrfs/disk-io.c')
-rw-r--r-- | fs/btrfs/disk-io.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 0fa65aca56a3..de1dcccc7c9d 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c | |||
@@ -4479,10 +4479,17 @@ void btrfs_cleanup_dirty_bgs(struct btrfs_transaction *cur_trans, | |||
4479 | void btrfs_cleanup_one_transaction(struct btrfs_transaction *cur_trans, | 4479 | void btrfs_cleanup_one_transaction(struct btrfs_transaction *cur_trans, |
4480 | struct btrfs_fs_info *fs_info) | 4480 | struct btrfs_fs_info *fs_info) |
4481 | { | 4481 | { |
4482 | struct btrfs_device *dev, *tmp; | ||
4483 | |||
4482 | btrfs_cleanup_dirty_bgs(cur_trans, fs_info); | 4484 | btrfs_cleanup_dirty_bgs(cur_trans, fs_info); |
4483 | ASSERT(list_empty(&cur_trans->dirty_bgs)); | 4485 | ASSERT(list_empty(&cur_trans->dirty_bgs)); |
4484 | ASSERT(list_empty(&cur_trans->io_bgs)); | 4486 | ASSERT(list_empty(&cur_trans->io_bgs)); |
4485 | 4487 | ||
4488 | list_for_each_entry_safe(dev, tmp, &cur_trans->dev_update_list, | ||
4489 | post_commit_list) { | ||
4490 | list_del_init(&dev->post_commit_list); | ||
4491 | } | ||
4492 | |||
4486 | btrfs_destroy_delayed_refs(cur_trans, fs_info); | 4493 | btrfs_destroy_delayed_refs(cur_trans, fs_info); |
4487 | 4494 | ||
4488 | cur_trans->state = TRANS_STATE_COMMIT_START; | 4495 | cur_trans->state = TRANS_STATE_COMMIT_START; |