simplify dmu_write_policy handling of pre-compressed buffers
zfs - Zettabyte File System
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 about 6 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
git commit adaec86ad212d9fd756bee322934fa54d1258605
commit adaec86ad212d9fd756bee322934fa54d1258605 Author: Matthew Ahrens <email@example.com> Date: 2017-06-06T05:02:12.000Z 8155 simplify dmu_write_policy handling of pre-compressed buffers Reviewed by: Dan Kimmel <firstname.lastname@example.org> Reviewed by: George Wilson <email@example.com> Approved by: Robert Mustacchi <firstname.lastname@example.org>