Project

General

Profile

Actions

Bug #5314

closed

Remove "dbuf phys" db->db_data pointer aliases in ZFS

Added by Justin Gibbs about 7 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Start date:
2014-11-11
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

Consumers of the DMU can associate private data with dmu buffers via the dmu_buf_*user() APIs. The current API allows the consumer to register a pointer to a pointer inside its private data that should shadow the db_data pointer within the dbuf. This pointer aliasing exists solely so that the consumer of the API does not need to cast db->db_data to the type of the data contained within the buffer.

Rather than have pointer aliases that consume memory and can get out of sync, use accessor functions that cast db->db_data to the appropriate type.

Actions

Also available in: Atom PDF