Lines Matching refs:octx
620 struct userfaultfd_ctx *ctx = NULL, *octx; in dup_userfaultfd() local
623 octx = vma->vm_userfaultfd_ctx.ctx; in dup_userfaultfd()
624 if (!octx) in dup_userfaultfd()
627 if (!(octx->features & UFFD_FEATURE_EVENT_FORK)) { in dup_userfaultfd()
633 if (fctx->orig == octx) { in dup_userfaultfd()
650 ctx->flags = octx->flags; in dup_userfaultfd()
651 ctx->features = octx->features; in dup_userfaultfd()
658 userfaultfd_ctx_get(octx); in dup_userfaultfd()
659 down_write(&octx->map_changing_lock); in dup_userfaultfd()
660 atomic_inc(&octx->mmap_changing); in dup_userfaultfd()
661 up_write(&octx->map_changing_lock); in dup_userfaultfd()
662 fctx->orig = octx; in dup_userfaultfd()
710 struct userfaultfd_ctx *octx = fctx->orig; in dup_userfaultfd_fail() local
713 atomic_dec(&octx->mmap_changing); in dup_userfaultfd_fail()
714 VM_BUG_ON(atomic_read(&octx->mmap_changing) < 0); in dup_userfaultfd_fail()
715 userfaultfd_ctx_put(octx); in dup_userfaultfd_fail()