| 2122 | } |
| 2123 | |
| 2124 | static void |
| 2125 | cache_lock_buckets_cel(struct celockstate *cel, struct mtx *blp1, |
| 2126 | struct mtx *blp2) |
| 2127 | { |
| 2128 | |
| 2129 | MPASS(cel->blp[0] == NULL); |
| 2130 | MPASS(cel->blp[1] == NULL); |
| 2131 | |
| 2132 | cache_sort_vnodes(&blp1, &blp2); |
| 2133 | |
| 2134 | if (blp1 != NULL) { |
| 2135 | mtx_lock(blp1); |
| 2136 | cel->blp[0] = blp1; |
| 2137 | } |
| 2138 | mtx_lock(blp2); |
| 2139 | cel->blp[1] = blp2; |
| 2140 | } |
| 2141 | |
| 2142 | static void |
| 2143 | cache_unlock_buckets_cel(struct celockstate *cel) |
no test coverage detected