Lines Matching refs:pending_snapshot
747 struct btrfs_pending_snapshot *pending_snapshot; in create_snapshot() local
755 pending_snapshot = kzalloc(sizeof(*pending_snapshot), GFP_KERNEL); in create_snapshot()
756 if (!pending_snapshot) in create_snapshot()
759 pending_snapshot->root_item = kzalloc(sizeof(struct btrfs_root_item), in create_snapshot()
761 pending_snapshot->path = btrfs_alloc_path(); in create_snapshot()
762 if (!pending_snapshot->root_item || !pending_snapshot->path) { in create_snapshot()
792 btrfs_init_block_rsv(&pending_snapshot->block_rsv, in create_snapshot()
803 &pending_snapshot->block_rsv, 8, in create_snapshot()
808 pending_snapshot->dentry = dentry; in create_snapshot()
809 pending_snapshot->root = root; in create_snapshot()
810 pending_snapshot->readonly = readonly; in create_snapshot()
811 pending_snapshot->dir = dir; in create_snapshot()
812 pending_snapshot->inherit = inherit; in create_snapshot()
821 list_add(&pending_snapshot->list, in create_snapshot()
835 ret = pending_snapshot->error; in create_snapshot()
839 ret = btrfs_orphan_cleanup(pending_snapshot->snap); in create_snapshot()
852 btrfs_subvolume_release_metadata(fs_info, &pending_snapshot->block_rsv); in create_snapshot()
859 kfree(pending_snapshot->root_item); in create_snapshot()
860 btrfs_free_path(pending_snapshot->path); in create_snapshot()
861 kfree(pending_snapshot); in create_snapshot()