mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 15:27:29 +00:00
Merge branch 'allocator-fixes' into for-linus-4.4
Signed-off-by: Chris Mason <clm@fb.com>
This commit is contained in:
commit
a9e6d15356
14 changed files with 458 additions and 122 deletions
|
@ -4327,25 +4327,6 @@ again:
|
|||
return 0;
|
||||
}
|
||||
|
||||
static void btrfs_free_pending_ordered(struct btrfs_transaction *cur_trans,
|
||||
struct btrfs_fs_info *fs_info)
|
||||
{
|
||||
struct btrfs_ordered_extent *ordered;
|
||||
|
||||
spin_lock(&fs_info->trans_lock);
|
||||
while (!list_empty(&cur_trans->pending_ordered)) {
|
||||
ordered = list_first_entry(&cur_trans->pending_ordered,
|
||||
struct btrfs_ordered_extent,
|
||||
trans_list);
|
||||
list_del_init(&ordered->trans_list);
|
||||
spin_unlock(&fs_info->trans_lock);
|
||||
|
||||
btrfs_put_ordered_extent(ordered);
|
||||
spin_lock(&fs_info->trans_lock);
|
||||
}
|
||||
spin_unlock(&fs_info->trans_lock);
|
||||
}
|
||||
|
||||
void btrfs_cleanup_one_transaction(struct btrfs_transaction *cur_trans,
|
||||
struct btrfs_root *root)
|
||||
{
|
||||
|
@ -4357,7 +4338,6 @@ void btrfs_cleanup_one_transaction(struct btrfs_transaction *cur_trans,
|
|||
cur_trans->state = TRANS_STATE_UNBLOCKED;
|
||||
wake_up(&root->fs_info->transaction_wait);
|
||||
|
||||
btrfs_free_pending_ordered(cur_trans, root->fs_info);
|
||||
btrfs_destroy_delayed_inodes(root);
|
||||
btrfs_assert_delayed_root_empty(root);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue