search for: nested_tran

Displaying 1 result from an estimated 1 matches for "nested_tran".

Did you mean: nested_trans
2009 Aug 24
0
[PATCH] Btrfs: proper metadata -ENOSPC handling
...+ cur_trans->use_count++; record_root_in_trans(h, root); + + return ret; +} + +static struct btrfs_trans_handle *start_transaction(struct btrfs_root *root, + int num_items, int wait) +{ + struct btrfs_transaction *cur_trans; + struct btrfs_trans_handle *h; + u64 num_bytes = 0; + bool nested_trans = (current->journal_info); + bool committed = false; + int ret; + + num_bytes = calculate_bytes_needed(root, num_items); + +again: + h = kmem_cache_alloc(btrfs_trans_handle_cachep, GFP_NOFS); + if (!h) + return ERR_PTR(-ENOMEM); + + mutex_lock(&root->fs_info->trans_mutex); + if (!roo...