]> granicus.if.org Git - zfs/commit
Split "data_size" into "meta" and "data"
authorPrakash Surya <surya1@llnl.gov>
Mon, 3 Feb 2014 20:41:47 +0000 (12:41 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Sat, 22 Feb 2014 00:10:49 +0000 (16:10 -0800)
commitcc7f677c1610bd4ae11676ba02ec8987c347b83d
tree1a4fc6aa99b705e5f3e6bc38307d0b99dbb3ab6b
parentda8ccd0ee0d4eed08200e706cb2ca1da3bdfb5cf
Split "data_size" into "meta" and "data"

Previously, the "data_size" field in the arcstats kstat contained the
amount of cached "metadata" and "data" in the ARC. The problem is this
then made it difficult to extract out just the "metadata" size, or just
the "data" size.

To make it easier to distinguish the two values, "data_size" has been
modified to count only buffers of type ARC_BUFC_DATA, and "meta_size"
was added to count only buffers of type ARC_BUFC_METADATA. If one wants
the old "data_size" value, simply sum the new "data_size" and
"meta_size" values.

Signed-off-by: Prakash Surya <surya1@llnl.gov>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Issue #2110
include/sys/arc.h
module/zfs/arc.c