Lines Matching refs:pending_snapshot
654 struct btrfs_pending_snapshot *pending_snapshot; in create_snapshot() local
671 pending_snapshot = kzalloc(sizeof(*pending_snapshot), GFP_NOFS); in create_snapshot()
672 if (!pending_snapshot) { in create_snapshot()
677 btrfs_init_block_rsv(&pending_snapshot->block_rsv, in create_snapshot()
688 &pending_snapshot->block_rsv, 8, in create_snapshot()
689 &pending_snapshot->qgroup_reserved, in create_snapshot()
694 pending_snapshot->dentry = dentry; in create_snapshot()
695 pending_snapshot->root = root; in create_snapshot()
696 pending_snapshot->readonly = readonly; in create_snapshot()
697 pending_snapshot->dir = dir; in create_snapshot()
698 pending_snapshot->inherit = inherit; in create_snapshot()
707 list_add(&pending_snapshot->list, in create_snapshot()
723 ret = pending_snapshot->error; in create_snapshot()
727 ret = btrfs_orphan_cleanup(pending_snapshot->snap); in create_snapshot()
741 &pending_snapshot->block_rsv, in create_snapshot()
742 pending_snapshot->qgroup_reserved); in create_snapshot()
744 kfree(pending_snapshot); in create_snapshot()