Lines Matching refs:pending_snapshot
655 struct btrfs_pending_snapshot *pending_snapshot; in create_snapshot() local
672 pending_snapshot = kzalloc(sizeof(*pending_snapshot), GFP_NOFS); in create_snapshot()
673 if (!pending_snapshot) { in create_snapshot()
678 btrfs_init_block_rsv(&pending_snapshot->block_rsv, in create_snapshot()
689 &pending_snapshot->block_rsv, 8, in create_snapshot()
690 &pending_snapshot->qgroup_reserved, in create_snapshot()
695 pending_snapshot->dentry = dentry; in create_snapshot()
696 pending_snapshot->root = root; in create_snapshot()
697 pending_snapshot->readonly = readonly; in create_snapshot()
698 pending_snapshot->dir = dir; in create_snapshot()
699 pending_snapshot->inherit = inherit; in create_snapshot()
708 list_add(&pending_snapshot->list, in create_snapshot()
724 ret = pending_snapshot->error; in create_snapshot()
728 ret = btrfs_orphan_cleanup(pending_snapshot->snap); in create_snapshot()
742 &pending_snapshot->block_rsv, in create_snapshot()
743 pending_snapshot->qgroup_reserved); in create_snapshot()
745 kfree(pending_snapshot); in create_snapshot()