Lines Matching defs:lock1
1802 * Split an the existing 'lock1', based on the extent of the lock
1810 lf_split(struct lockf *state, struct lockf_entry *lock1,
1817 lf_print("lf_split", lock1);
1824 if (lock1->lf_start == lock2->lf_start) {
1825 lf_set_start(state, lock1, lock2->lf_end + 1, granted);
1828 if (lock1->lf_end == lock2->lf_end) {
1829 lf_set_end(state, lock1, lock2->lf_start - 1, granted);
1836 splitlock = lf_alloc_lock(lock1->lf_owner);
1837 memcpy(splitlock, lock1, sizeof *splitlock);
1844 * to splitlock already exist in lock1. We must be sure to add
1845 * necessary dependencies to splitlock before we reduce lock1
1847 * was blocked by the tail end of lock1.
1856 lf_set_end(state, lock1, lock2->lf_start - 1, granted);