| 5370 | } |
| 5371 | |
| 5372 | static void |
| 5373 | arc_free_data_buf(arc_buf_hdr_t *hdr, void *buf, uint64_t size, void *tag) |
| 5374 | { |
| 5375 | arc_buf_contents_t type = arc_buf_type(hdr); |
| 5376 | |
| 5377 | arc_free_data_impl(hdr, size, tag); |
| 5378 | if (type == ARC_BUFC_METADATA) { |
| 5379 | zio_buf_free(buf, size); |
| 5380 | } else { |
| 5381 | ASSERT(type == ARC_BUFC_DATA); |
| 5382 | zio_data_buf_free(buf, size); |
| 5383 | } |
| 5384 | } |
| 5385 | |
| 5386 | /* |
| 5387 | * Free the arc data buffer. |
no test coverage detected