Lines Matching refs:adjacent
355 * Description: Helper function: when setting a lock, coalesce adjacent
356 * locks. Needed because adjacent locks are not overlapping,
359 * Parameters: lock The new lock which may be adjacent
380 * NOTE: Assumes that if two locks are adjacent on the number line
381 * and belong to the same owner, then they are adjacent on the list.
385 struct lockf *adjacent = *lf;
387 LOCKF_DEBUG(0, "lf_coalesce_adjacent: coalesce adjacent previous\n");
392 lf_move_blocked(lock, adjacent);
394 FREE(adjacent, M_LOCKF);
397 /* If the lock starts adjacent to us, we can coalesce it */
400 struct lockf *adjacent = *lf;
402 LOCKF_DEBUG(0, "lf_coalesce_adjacent: coalesce adjacent following\n");
407 lf_move_blocked(lock, adjacent);
409 FREE(adjacent, M_LOCKF);
749 /* Coalesce adjacent locks with identical attributes */
1007 * Locks belonging to one process are adjacent on the
1012 * numerically adjacent locks from the same owner to
1013 * be adjacent on the list.