Lines Matching refs:pending
1392 struct btrfs_pending_snapshot *pending) in create_pending_snapshot() argument
1399 struct btrfs_root *root = pending->root; in create_pending_snapshot()
1416 ASSERT(pending->path); in create_pending_snapshot()
1417 path = pending->path; in create_pending_snapshot()
1419 ASSERT(pending->root_item); in create_pending_snapshot()
1420 new_root_item = pending->root_item; in create_pending_snapshot()
1422 pending->error = btrfs_find_free_objectid(tree_root, &objectid); in create_pending_snapshot()
1423 if (pending->error) in create_pending_snapshot()
1432 btrfs_reloc_pre_snapshot(pending, &to_reserve); in create_pending_snapshot()
1435 pending->error = btrfs_block_rsv_add(root, in create_pending_snapshot()
1436 &pending->block_rsv, in create_pending_snapshot()
1439 if (pending->error) in create_pending_snapshot()
1448 trans->block_rsv = &pending->block_rsv; in create_pending_snapshot()
1453 dentry = pending->dentry; in create_pending_snapshot()
1454 parent_inode = pending->dir; in create_pending_snapshot()
1472 pending->error = -EEXIST; in create_pending_snapshot()
1499 if (pending->readonly) in create_pending_snapshot()
1570 pending->snap = btrfs_read_fs_root_no_name(fs_info, &key); in create_pending_snapshot()
1571 if (IS_ERR(pending->snap)) { in create_pending_snapshot()
1572 ret = PTR_ERR(pending->snap); in create_pending_snapshot()
1577 ret = btrfs_reloc_post_snapshot(trans, pending); in create_pending_snapshot()
1596 pending->inherit, objectid); in create_pending_snapshot()
1642 pending->error = ret; in create_pending_snapshot()
1650 pending->root_item = NULL; in create_pending_snapshot()
1652 pending->path = NULL; in create_pending_snapshot()
1662 struct btrfs_pending_snapshot *pending, *next; in create_pending_snapshots() local
1666 list_for_each_entry_safe(pending, next, head, list) { in create_pending_snapshots()
1667 list_del(&pending->list); in create_pending_snapshots()
1668 ret = create_pending_snapshot(trans, pending); in create_pending_snapshots()
1902 struct btrfs_pending_snapshot *pending; in btrfs_start_delalloc_flush() local
1912 list_for_each_entry(pending, head, list) { in btrfs_start_delalloc_flush()
1915 ret = btrfs_start_delalloc_snapshot(pending->root); in btrfs_start_delalloc_flush()
1930 struct btrfs_pending_snapshot *pending; in btrfs_wait_delalloc_flush() local
1939 list_for_each_entry(pending, head, list) in btrfs_wait_delalloc_flush()
1940 btrfs_wait_ordered_extents(pending->root, in btrfs_wait_delalloc_flush()