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

Function dbuf_clear_data

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

Source from the content-addressed store, hash-verified

1067#endif
1068
1069static void
1070dbuf_clear_data(dmu_buf_impl_t *db)
1071{
1072 ASSERT(MUTEX_HELD(&db->db_mtx));
1073 dbuf_evict_user(db);
1074 ASSERT3P(db->db_buf, ==, NULL);
1075 db->db.db_data = NULL;
1076 if (db->db_state != DB_NOFILL) {
1077 db->db_state = DB_UNCACHED;
1078 DTRACE_SET_STATE(db, "clear data");
1079 }
1080}
1081
1082static void
1083dbuf_set_data(dmu_buf_impl_t *db, arc_buf_t *buf)

Callers 4

dbuf_loan_arcbufFunction · 0.85
dbuf_fix_old_dataFunction · 0.85
dbuf_noreadFunction · 0.85
dbuf_destroyFunction · 0.85

Calls 1

dbuf_evict_userFunction · 0.85

Tested by

no test coverage detected