Lines Matching refs:pending
1255 struct btrfs_pending_snapshot *pending) in create_pending_snapshot() argument
1260 struct btrfs_root *root = pending->root; in create_pending_snapshot()
1279 pending->error = -ENOMEM; in create_pending_snapshot()
1285 pending->error = -ENOMEM; in create_pending_snapshot()
1289 pending->error = btrfs_find_free_objectid(tree_root, &objectid); in create_pending_snapshot()
1290 if (pending->error) in create_pending_snapshot()
1293 btrfs_reloc_pre_snapshot(trans, pending, &to_reserve); in create_pending_snapshot()
1296 pending->error = btrfs_block_rsv_add(root, in create_pending_snapshot()
1297 &pending->block_rsv, in create_pending_snapshot()
1300 if (pending->error) in create_pending_snapshot()
1309 trans->block_rsv = &pending->block_rsv; in create_pending_snapshot()
1312 dentry = pending->dentry; in create_pending_snapshot()
1313 parent_inode = pending->dir; in create_pending_snapshot()
1329 pending->error = -EEXIST; in create_pending_snapshot()
1356 if (pending->readonly) in create_pending_snapshot()
1412 objectid, pending->inherit); in create_pending_snapshot()
1446 pending->snap = btrfs_read_fs_root_no_name(root->fs_info, &key); in create_pending_snapshot()
1447 if (IS_ERR(pending->snap)) { in create_pending_snapshot()
1448 ret = PTR_ERR(pending->snap); in create_pending_snapshot()
1453 ret = btrfs_reloc_post_snapshot(trans, pending); in create_pending_snapshot()
1501 pending->error = ret; in create_pending_snapshot()
1518 struct btrfs_pending_snapshot *pending, *next; in create_pending_snapshots() local
1522 list_for_each_entry_safe(pending, next, head, list) { in create_pending_snapshots()
1523 list_del(&pending->list); in create_pending_snapshots()
1524 ret = create_pending_snapshot(trans, fs_info, pending); in create_pending_snapshots()