Lines Matching refs:pending

1300 				   struct btrfs_pending_snapshot *pending)  in create_pending_snapshot()  argument
1305 struct btrfs_root *root = pending->root; in create_pending_snapshot()
1324 pending->error = -ENOMEM; in create_pending_snapshot()
1330 pending->error = -ENOMEM; in create_pending_snapshot()
1334 pending->error = btrfs_find_free_objectid(tree_root, &objectid); in create_pending_snapshot()
1335 if (pending->error) in create_pending_snapshot()
1344 btrfs_reloc_pre_snapshot(pending, &to_reserve); in create_pending_snapshot()
1347 pending->error = btrfs_block_rsv_add(root, in create_pending_snapshot()
1348 &pending->block_rsv, in create_pending_snapshot()
1351 if (pending->error) in create_pending_snapshot()
1360 trans->block_rsv = &pending->block_rsv; in create_pending_snapshot()
1363 dentry = pending->dentry; in create_pending_snapshot()
1364 parent_inode = pending->dir; in create_pending_snapshot()
1380 pending->error = -EEXIST; in create_pending_snapshot()
1407 if (pending->readonly) in create_pending_snapshot()
1478 pending->snap = btrfs_read_fs_root_no_name(root->fs_info, &key); in create_pending_snapshot()
1479 if (IS_ERR(pending->snap)) { in create_pending_snapshot()
1480 ret = PTR_ERR(pending->snap); in create_pending_snapshot()
1485 ret = btrfs_reloc_post_snapshot(trans, pending); in create_pending_snapshot()
1550 objectid, pending->inherit); in create_pending_snapshot()
1557 pending->error = ret; in create_pending_snapshot()
1576 struct btrfs_pending_snapshot *pending, *next; in create_pending_snapshots() local
1580 list_for_each_entry_safe(pending, next, head, list) { in create_pending_snapshots()
1581 list_del(&pending->list); in create_pending_snapshots()
1582 ret = create_pending_snapshot(trans, fs_info, pending); in create_pending_snapshots()