* Remove an edge from the lock graph. */
| 938 | * Remove an edge from the lock graph. |
| 939 | */ |
| 940 | static void |
| 941 | lf_remove_edge(struct lockf_edge *e) |
| 942 | { |
| 943 | struct owner_graph *g = &lf_owner_graph; |
| 944 | struct lockf_entry *x = e->le_from; |
| 945 | struct lockf_entry *y = e->le_to; |
| 946 | |
| 947 | graph_remove_edge(g, x->lf_owner->lo_vertex, y->lf_owner->lo_vertex); |
| 948 | LIST_REMOVE(e, le_outlink); |
| 949 | LIST_REMOVE(e, le_inlink); |
| 950 | e->le_from = NULL; |
| 951 | e->le_to = NULL; |
| 952 | lf_free_edge(e); |
| 953 | } |
| 954 | |
| 955 | /* |
| 956 | * Remove all out-going edges from lock x. |
no test coverage detected