| 446 | } |
| 447 | |
| 448 | int |
| 449 | vop_stdadvlockasync(struct vop_advlockasync_args *ap) |
| 450 | { |
| 451 | struct vnode *vp; |
| 452 | struct vattr vattr; |
| 453 | int error; |
| 454 | |
| 455 | vp = ap->a_vp; |
| 456 | if (ap->a_fl->l_whence == SEEK_END) { |
| 457 | /* The size argument is only needed for SEEK_END. */ |
| 458 | vn_lock(vp, LK_SHARED | LK_RETRY); |
| 459 | error = VOP_GETATTR(vp, &vattr, curthread->td_ucred); |
| 460 | VOP_UNLOCK(vp); |
| 461 | if (error) |
| 462 | return (error); |
| 463 | } else |
| 464 | vattr.va_size = 0; |
| 465 | |
| 466 | return (lf_advlockasync(ap, &(vp->v_lockf), vattr.va_size)); |
| 467 | } |
| 468 | |
| 469 | int |
| 470 | vop_stdadvlockpurge(struct vop_advlockpurge_args *ap) |
nothing calls this directly
no test coverage detected