Matthew Macy 13fac09868
Consolidate arc_buf allocation checks
The following check currently occurs in three separate locations
in dbuf.c.  This change consolidates those checks in to the
dbuf_alloc_arcbuf_from_arcbuf() function.

if (arc_is_encrypted(data)) {
...
} else if (compress_type != ZIO_COMPRESS_OFF) {
...
} else {
...
}

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Matt Macy <mmacy@FreeBSD.org>
Closes #10057
2020-02-27 17:12:44 -08:00
..
2019-11-01 10:41:03 -07:00
2020-02-27 09:31:02 -08:00
2019-11-01 10:41:03 -07:00
2020-02-27 17:12:44 -08:00
2019-12-02 13:23:47 -08:00