Lines Matching defs:new_lop

164 static void nfsrv_insertlock(struct nfslock *new_lop,
1809 * The structures new_stp and new_lop are passed in as pointers that should
1825 struct nfslock *new_lop = *new_lopp;
1930 (new_lop->lo_flags & (NFSLCK_READ | NFSLCK_WRITE)),
1931 new_lop->lo_first, new_lop->lo_end, cfp, p);
2175 !((new_lop->lo_flags >> NFSLCK_LOCKSHIFT) &
2290 (new_lop->lo_flags & NFSLCK_READ))) &&
2294 (new_lop->lo_flags & NFSLCK_WRITE) &&
2344 first = new_lop->lo_first;
2345 end = new_lop->lo_end;
2377 if (new_lop->lo_end > lop->lo_first &&
2378 new_lop->lo_first < lop->lo_end &&
2379 (new_lop->lo_flags == NFSLCK_WRITE ||
2476 first = new_lop->lo_first;
2477 end = new_lop->lo_end;
2478 lock_flags = new_lop->lo_flags;
2505 nfsrv_insertlock(new_lop, (struct nfslock *)new_stp, new_stp,
3830 nfsrv_insertlock(struct nfslock *new_lop, struct nfslock *insert_lop,
3835 new_lop->lo_stp = stp;
3836 new_lop->lo_lfp = lfp;
3842 new_lop->lo_first <= lop->lo_first) {
3843 LIST_INSERT_HEAD(&lfp->lf_lock, new_lop, lo_lckfile);
3847 nlop->lo_first < new_lop->lo_first) {
3851 LIST_INSERT_AFTER(lop, new_lop, lo_lckfile);
3854 new_lop->lo_lckfile.le_prev = NULL; /* list not used */
3862 LIST_INSERT_HEAD(&lfp->lf_locallock, new_lop, lo_lckowner);
3864 LIST_INSERT_HEAD(&stp->ls_lock, new_lop, lo_lckowner);
3866 LIST_INSERT_AFTER(insert_lop, new_lop, lo_lckowner);
3877 * It always adds new_lop to the list and sometimes uses the one pointed
3884 struct nfslock *new_lop = *new_lopp;
3893 if (new_lop->lo_flags & NFSLCK_UNLOCK)
3909 if (lop->lo_end >= new_lop->lo_first) {
3910 if (new_lop->lo_end < lop->lo_first) {
3918 if (new_lop->lo_flags == lop->lo_flags ||
3919 (new_lop->lo_first <= lop->lo_first &&
3920 new_lop->lo_end >= lop->lo_end)) {
3928 if (lop->lo_first < new_lop->lo_first)
3929 new_lop->lo_first = lop->lo_first;
3930 if (lop->lo_end > new_lop->lo_end)
3931 new_lop->lo_end = lop->lo_end;
3942 if (new_lop->lo_first <= lop->lo_first) {
3950 lop->lo_first = new_lop->lo_end;
3953 if (new_lop->lo_end >= lop->lo_end) {
3962 lop->lo_end = new_lop->lo_first;
3972 * For unlock, we use new_lop as other_lop and tmp, since
3973 * other_lop and new_lop are the same for this case.
3975 * new_lop->lo_flags any longer.
3977 tmp = new_lop->lo_first;
3981 other_lop = new_lop;
3984 other_lop->lo_first = new_lop->lo_end;
4006 nfsrv_insertlock(new_lop, ilop, stp, lfp);
6172 struct nfslock *new_lop, *other_lop;
6174 new_lop = malloc(sizeof (struct nfslock), M_NFSDLOCK, M_WAITOK);
6180 new_lop->lo_flags = flags;
6181 new_lop->lo_first = first;
6182 new_lop->lo_end = end;
6183 nfsrv_updatelock(NULL, &new_lop, &other_lop, lfp);
6184 if (new_lop != NULL)
6185 free(new_lop, M_NFSDLOCK);