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

Function dbuf_set_data

freebsd/contrib/openzfs/module/zfs/dbuf.c:1082–1091  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1080}
1081
1082static void
1083dbuf_set_data(dmu_buf_impl_t *db, arc_buf_t *buf)
1084{
1085 ASSERT(MUTEX_HELD(&db->db_mtx));
1086 ASSERT(buf != NULL);
1087
1088 db->db_buf = buf;
1089 ASSERT(buf->b_data != NULL);
1090 db->db.db_data = buf->b_data;
1091}
1092
1093static arc_buf_t *
1094dbuf_alloc_arcbuf_from_arcbuf(dmu_buf_impl_t *db, arc_buf_t *data)

Callers 7

dbuf_read_doneFunction · 0.85
dbuf_read_holeFunction · 0.85
dbuf_readFunction · 0.85
dbuf_noreadFunction · 0.85
dbuf_new_sizeFunction · 0.85
dbuf_assign_arcbufFunction · 0.85
dbuf_hold_copyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected