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

Function arc_free_data_buf

freebsd/contrib/openzfs/module/zfs/arc.c:5372–5384  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5370}
5371
5372static void
5373arc_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.

Callers 3

arc_hdr_decryptFunction · 0.85
arc_buf_fillFunction · 0.85
arc_buf_destroy_implFunction · 0.85

Calls 4

arc_buf_typeFunction · 0.85
arc_free_data_implFunction · 0.85
zio_buf_freeFunction · 0.85
zio_data_buf_freeFunction · 0.85

Tested by

no test coverage detected