Lines Matching defs:new_lop
2278 nfscl_insertlock(struct nfscllockowner *lp, struct nfscllock *new_lop,
2283 LIST_INSERT_HEAD(&lp->nfsl_lock, new_lop, nfslo_list);
2285 LIST_INSERT_AFTER(insert_lop, new_lop, nfslo_list);
2296 * It always adds new_lop to the list and sometimes uses the one pointed
2304 struct nfscllock *new_lop = *new_lopp;
2313 if (new_lop->nfslo_type == F_UNLCK)
2322 if (lop->nfslo_end >= new_lop->nfslo_first) {
2323 if (new_lop->nfslo_end < lop->nfslo_first) {
2331 if (new_lop->nfslo_type == lop->nfslo_type ||
2332 (new_lop->nfslo_first <= lop->nfslo_first &&
2333 new_lop->nfslo_end >= lop->nfslo_end)) {
2341 if (new_lop->nfslo_type != lop->nfslo_type ||
2342 new_lop->nfslo_first != lop->nfslo_first ||
2343 new_lop->nfslo_end != lop->nfslo_end)
2345 if (lop->nfslo_first < new_lop->nfslo_first)
2346 new_lop->nfslo_first = lop->nfslo_first;
2347 if (lop->nfslo_end > new_lop->nfslo_end)
2348 new_lop->nfslo_end = lop->nfslo_end;
2359 if (new_lop->nfslo_first <= lop->nfslo_first) {
2367 if (lop->nfslo_first != new_lop->nfslo_end) {
2368 lop->nfslo_first = new_lop->nfslo_end;
2373 if (new_lop->nfslo_end >= lop->nfslo_end) {
2382 if (lop->nfslo_end != new_lop->nfslo_first) {
2383 lop->nfslo_end = new_lop->nfslo_first;
2395 * For unlock, we use new_lop as other_lop and tmp, since
2396 * other_lop and new_lop are the same for this case.
2398 * new_lop->nfslo_type any longer.
2400 tmp = new_lop->nfslo_first;
2402 other_lop = new_lop;
2408 other_lop->nfslo_first = new_lop->nfslo_end;
2427 nfscl_insertlock(lp, new_lop, ilop, local);