SVNews r332551

NOTE: This service is experimental and subject to change! Use at your own risk!

2018-04-16 04:14:42 - r332551 by mav (Alexander Motin)

Complete list of files affected by revision r332551:

(Note: At the moment, these links point to ViewVC on They are probably slow. Do not overuse.)

   Contents     MODIFY   /stable/11  
  History   Contents   Diff   MODIFY   /stable/11/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/arc.c  

Commit message:

MFC r331709: MFV r331708:
9321 arc_loan_compressed_buf() can increment arc_loaned_bytes by the wrong value


arc_loan_compressed_buf() increments arc_loaned_bytes by psize unconditionally
In the case of zfs_compressed_arc_enabled=0, when the buf is returned via
arc_return_buf(), if ARC_BUF_COMPRESSED(buf) is false, then arc_loaned_bytes
is decremented by lsize, not psize.

Switch to using arc_buf_size(buf), instead of psize, which will return
psize or lsize, depending on the result of ARC_BUF_COMPRESSED(buf).

Reviewed by: Matt Ahrens <>
Reviewed by: George Wilson <>
Approved by: Garrett D'Amore <>
Author: Allan Jude <>


Powered by Python FreeBSD support by secnetix GmbH & Co. KG

Page generated in 16 ms, 2 files printed. Current time is 2018-04-23 15:18:12. All times are in UTC/GMT.