Home | History | Annotate | Download | only in nlm

Lines Matching refs:fl

80     struct vnode *vp, int op, struct flock *fl, int flags,
84 struct vnode *vp, int op, struct flock *fl, int flags,
88 struct vnode *vp, int op, struct flock *fl, int flags,
93 static int nlm_init_lock(struct flock *fl, int flags, int svid,
197 nlm_advlock_internal(struct vnode *vp, void *id, int op, struct flock *fl,
272 KASSERT(fl->l_start == 0 && fl->l_len == 0,
288 svid = fl->l_pid;
296 && fl->l_type == F_WRLCK) {
309 vp, F_SETLK, fl, flags & ~F_WAIT,
312 fl->l_type = F_UNLCK;
314 retries, vp, F_UNLCK, fl, flags,
316 fl->l_type = F_WRLCK;
326 &timo, retries, vp, F_SETLK, fl,
333 vp, op, fl, flags, svid, fhlen, &fh.fh_bytes,
356 vp, op, fl, flags, svid, fhlen, &fh.fh_bytes, size);
369 vp, op, fl, flags, svid, fhlen, &fh.fh_bytes, size);
404 nlm_set_creds_for_lock(struct thread *td, struct flock *fl)
412 if (fl->l_pid > PID_MAX) {
422 if (ns->ns_svid == fl->l_pid) {
434 p = pfind(fl->l_pid);
453 nlm_reclaim_free_lock(struct vnode *vp, struct flock *fl, void *arg)
460 newfl = *fl;
490 nlm_client_recover_lock(struct vnode *vp, struct flock *fl, void *arg)
511 nlm_set_creds_for_lock(td, fl);
513 error = nlm_advlock_internal(vp, NULL, F_SETLK, fl, F_REMOTE,
697 nlm_record_lock(struct vnode *vp, int op, struct flock *fl,
712 newfl.l_start = fl->l_start;
713 newfl.l_len = fl->l_len;
714 newfl.l_type = fl->l_type;
715 newfl.l_whence = fl->l_whence;
762 struct vnode *vp, int op, struct flock *fl, int flags,
779 exclusive = (fl->l_type == F_WRLCK);
781 error = nlm_init_lock(fl, flags, svid, vers, fhlen, fh, size,
949 nlm_record_lock(vp, op, fl, args.alock.svid,
961 struct vnode *vp, int op, struct flock *fl, int flags,
975 error = nlm_init_lock(fl, flags, svid, vers, fhlen, fh, size,
1026 nlm_record_lock(vp, op, fl, args.alock.svid,
1036 struct vnode *vp, int op, struct flock *fl, int flags,
1053 exclusive = (fl->l_type == F_WRLCK);
1055 error = nlm_init_lock(fl, flags, svid, vers, fhlen, fh, size,
1099 fl->l_start = h->l_offset;
1100 fl->l_len = h->l_len;
1101 fl->l_pid = h->svid;
1103 fl->l_type = F_WRLCK;
1105 fl->l_type = F_RDLCK;
1106 fl->l_whence = SEEK_SET;
1107 fl->l_sysid = 0;
1109 fl->l_type = F_UNLCK;
1223 nlm_init_lock(struct flock *fl, int flags, int svid,
1230 if (fl->l_whence == SEEK_END) {
1232 || (fl->l_start > 0 && size > OFF_MAX - fl->l_start))
1234 start = size + fl->l_start;
1235 } else if (fl->l_whence == SEEK_SET || fl->l_whence == SEEK_CUR) {
1236 start = fl->l_start;
1242 if (fl->l_len < 0) {
1243 len = -fl->l_len;
1248 len = fl->l_len;