MCPcopy Create free account
hub / github.com/F-Stack/f-stack / lf_set_start

Function lf_set_start

freebsd/kern/kern_lockf.c:1172–1182  ·  view source on GitHub ↗

* Set the start of an existing active lock, updating dependencies and * adding any newly woken locks to 'granted'. */

Source from the content-addressed store, hash-verified

1170 * adding any newly woken locks to 'granted'.
1171 */
1172static void
1173lf_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

Callers 2

lf_activate_lockFunction · 0.85
lf_splitFunction · 0.85

Calls 2

lf_insert_lockFunction · 0.85
lf_update_dependanciesFunction · 0.85

Tested by

no test coverage detected