* Set the end of an existing active lock, updating dependencies and * adding any newly woken locks to 'granted'. */
| 1186 | * adding any newly woken locks to 'granted'. |
| 1187 | */ |
| 1188 | static void |
| 1189 | lf_set_end(struct lockf *state, struct lockf_entry *lock, off_t new_end, |
| 1190 | struct lockf_entry_list *granted) |
| 1191 | { |
| 1192 | |
| 1193 | KASSERT(new_end <= lock->lf_end, ("can't increase lock")); |
| 1194 | lock->lf_end = new_end; |
| 1195 | lf_update_dependancies(state, lock, FALSE, granted); |
| 1196 | } |
| 1197 | |
| 1198 | /* |
| 1199 | * Add a lock to the active list, updating or removing any current |
no test coverage detected