* Set the start of an existing active lock, updating dependencies and * adding any newly woken locks to 'granted'. */
| 1170 | * adding any newly woken locks to 'granted'. |
| 1171 | */ |
| 1172 | static void |
| 1173 | lf_set_start(struct lockf *state, struct lockf_entry *lock, off_t new_start, |
| 1174 | struct lockf_entry_list *granted) |
| 1175 | { |
| 1176 | |
| 1177 | KASSERT(new_start >= lock->lf_start, ("can't increase lock")); |
| 1178 | lock->lf_start = new_start; |
| 1179 | LIST_REMOVE(lock, lf_link); |
| 1180 | lf_insert_lock(state, lock); |
| 1181 | lf_update_dependancies(state, lock, FALSE, granted); |
| 1182 | } |
| 1183 | |
| 1184 | /* |
| 1185 | * Set the end of an existing active lock, updating dependencies and |
no test coverage detected