Reviewed by: Dan Kimmel <[email protected]>
Reviewed by: George Wilson <[email protected]>

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 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.

Upstream bugs: DLPX-50071
You can view, comment on, or merge this pull request online at:

  https://github.com/openzfs/openzfs/pull/370

-- Commit Summary --

  * 8155 simplify dmu_write_policy handling of pre-compressed buffers

-- File Changes --

    M usr/src/uts/common/fs/zfs/arc.c (11)
    M usr/src/uts/common/fs/zfs/dbuf.c (4)
    M usr/src/uts/common/fs/zfs/dmu.c (21)
    M usr/src/uts/common/fs/zfs/dmu_objset.c (2)
    M usr/src/uts/common/fs/zfs/sys/dmu.h (4)

-- Patch Links --

https://github.com/openzfs/openzfs/pull/370.patch
https://github.com/openzfs/openzfs/pull/370.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openzfs/openzfs/pull/370

------------------------------------------
openzfs-developer
Archives: https://openzfs.topicbox-beta.com/groups/developer/
Powered by Topicbox: https://topicbox-beta.com

Reply via email to