Lines 1462-1471
Link Here
|
1462 |
return (vp); |
1462 |
return (vp); |
1463 |
} |
1463 |
} |
1464 |
|
1464 |
|
|
|
1465 |
static int |
1466 |
zfsctl_snapshot_inactive(ap) |
1467 |
struct vop_inactive_args /* { |
1468 |
struct vnode *a_vp; |
1469 |
struct thread *a_td; |
1470 |
} */ *ap; |
1471 |
{ |
1472 |
vnode_t *vp = ap->a_vp; |
1465 |
|
1473 |
|
|
|
1474 |
vrecycle(vp); |
1475 |
return (0); |
1476 |
} |
1477 |
|
1466 |
static int |
1478 |
static int |
1467 |
zfsctl_snapshot_reclaim(ap) |
1479 |
zfsctl_snapshot_reclaim(ap) |
1468 |
struct vop_inactive_args /* { |
1480 |
struct vop_reclaim_args /* { |
1469 |
struct vnode *a_vp; |
1481 |
struct vnode *a_vp; |
1470 |
struct thread *a_td; |
1482 |
struct thread *a_td; |
1471 |
} */ *ap; |
1483 |
} */ *ap; |
Lines 1663-1669
Link Here
|
1663 |
*/ |
1675 |
*/ |
1664 |
static struct vop_vector zfsctl_ops_snapshot = { |
1676 |
static struct vop_vector zfsctl_ops_snapshot = { |
1665 |
.vop_default = &default_vnodeops, |
1677 |
.vop_default = &default_vnodeops, |
1666 |
.vop_inactive = VOP_NULL, |
1678 |
.vop_inactive = zfsctl_snapshot_inactive, |
1667 |
.vop_lookup = zfsctl_snapshot_lookup, |
1679 |
.vop_lookup = zfsctl_snapshot_lookup, |
1668 |
.vop_reclaim = zfsctl_snapshot_reclaim, |
1680 |
.vop_reclaim = zfsctl_snapshot_reclaim, |
1669 |
.vop_getattr = zfsctl_snapshot_getattr, |
1681 |
.vop_getattr = zfsctl_snapshot_getattr, |