Lines Matching defs:dmapp
4659 nfs_delmap_args_t *dmapp;
4724 dmapp = kmem_alloc(sizeof (nfs_delmap_args_t), KM_SLEEP);
4726 dmapp->vp = vp;
4727 dmapp->off = off;
4728 dmapp->addr = addr;
4729 dmapp->len = len;
4730 dmapp->prot = prot;
4731 dmapp->maxprot = maxprot;
4732 dmapp->flags = flags;
4733 dmapp->cr = cr;
4734 dmapp->caller = delmap_call;
4736 error = as_add_callback(as, nfs_delmap_callback, dmapp,
4757 nfs_delmap_args_t *dmapp = (nfs_delmap_args_t *)arg;
4759 rp = VTOR(dmapp->vp);
4760 mi = VTOMI(dmapp->vp);
4762 atomic_add_long((ulong_t *)&rp->r_mapcnt, -btopr(dmapp->len));
4770 if (vn_has_cached_data(dmapp->vp) && !vn_is_readonly(dmapp->vp) &&
4771 dmapp->flags == MAP_SHARED && (dmapp->maxprot & PROT_WRITE)) {
4783 error = nfs_putpage(dmapp->vp, dmapp->off, dmapp->len,
4784 B_ASYNC, dmapp->cr, NULL);
4786 error = nfs_putpage(dmapp->vp, dmapp->off, dmapp->len,
4787 0, dmapp->cr, NULL);
4798 (void) nfs_putpage(dmapp->vp, dmapp->off, dmapp->len,
4799 B_INVAL, dmapp->cr, NULL);
4801 dmapp->caller->error = error;
4803 kmem_free(dmapp, sizeof (nfs_delmap_args_t));