simplify dmu_write_policy handling of pre-compressed buffers
When writing pre-compressed buffers, arc_write() requires that the compression algorithm used to compress the buffer matches the compression algorithm requested by the zio_prop_t,
which is set by dmu_write_policy(). This makes dmu_write_policy() and its callers a bit more complicated.
We can simplify this by making arc_write() trust the caller to supply the type of pre-compressed buffer that it wants to write, and override the compression setting in the zio_prop_t.
Updated by Electric Monk over 2 years ago
- % Done changed from 0 to 100
- Status changed from New to Closed
commit adaec86ad212d9fd756bee322934fa54d1258605 Author: Matthew Ahrens <firstname.lastname@example.org> Date: 2017-06-06T05:02:12.000Z 8155 simplify dmu_write_policy handling of pre-compressed buffers Reviewed by: Dan Kimmel <email@example.com> Reviewed by: George Wilson <firstname.lastname@example.org> Approved by: Robert Mustacchi <email@example.com>