Project

General

Profile

Bug #8155

simplify dmu_write_policy handling of pre-compressed buffers

Added by Serapheim Dimitropoulos over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Category:
zfs - Zettabyte File System
Start date:
2017-05-04
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

Description

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.

History

#1

Updated by Electric Monk over 2 years ago

  • % Done changed from 0 to 100
  • Status changed from New to Closed

git commit adaec86ad212d9fd756bee322934fa54d1258605

commit  adaec86ad212d9fd756bee322934fa54d1258605
Author: Matthew Ahrens <mahrens@delphix.com>
Date:   2017-06-06T05:02:12.000Z

    8155 simplify dmu_write_policy handling of pre-compressed buffers
    Reviewed by: Dan Kimmel <dan.kimmel@delphix.com>
    Reviewed by: George Wilson <george.wilson@delphix.com>
    Approved by: Robert Mustacchi <rm@joyent.com>

Also available in: Atom PDF