* Ensure that the lock's owner has a corresponding vertex in the * owner graph. */
| 889 | * owner graph. |
| 890 | */ |
| 891 | static void |
| 892 | lf_alloc_vertex(struct lockf_entry *lock) |
| 893 | { |
| 894 | struct owner_graph *g = &lf_owner_graph; |
| 895 | |
| 896 | if (!lock->lf_owner->lo_vertex) |
| 897 | lock->lf_owner->lo_vertex = |
| 898 | graph_alloc_vertex(g, lock->lf_owner); |
| 899 | } |
| 900 | |
| 901 | /* |
| 902 | * Attempt to record an edge from lock x to lock y. Return EDEADLK if |
no test coverage detected