diff options
author | Prakash Surya <[email protected]> | 2015-06-16 01:12:19 +0200 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2015-06-25 08:51:44 -0700 |
commit | d962d5dad9dae20dec096abe73f22a4c813199fd (patch) | |
tree | 1047bebf03ee633a003cafa95b279c571699ccc6 /include/sys/arc_impl.h | |
parent | fa720217b9765303aaa882a9ccdf70c185acc53d (diff) |
Illumos 5701 - zpool list reports incorrect "alloc" value for cache devices
5701 zpool list reports incorrect "alloc" value for cache devices
Reviewed by: Matthew Ahrens <[email protected]>
Reviewed by: George Wilson <[email protected]>
Reviewed by: Alek Pinchuk <[email protected]>
Approved by: Dan McDonald <[email protected]>
References:
https://www.illumos.org/issues/5701
https://github.com/illumos/illumos-gate/commit/a52fc31
Porting Notes:
arc_space_return(HDR_L2ONLY_SIZE, ARC_SPACE_L2HDRS);
correctly placed at arc_hdr_l2hdr_destroy(arc_buf_hdr_t *hdr).
Ported by: kernelOfTruth [email protected]
Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'include/sys/arc_impl.h')
-rw-r--r-- | include/sys/arc_impl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sys/arc_impl.h b/include/sys/arc_impl.h index 54f5e9f40..4a07e5c2b 100644 --- a/include/sys/arc_impl.h +++ b/include/sys/arc_impl.h @@ -172,12 +172,12 @@ typedef struct l2arc_dev { uint64_t l2ad_hand; /* next write location */ uint64_t l2ad_start; /* first addr on device */ uint64_t l2ad_end; /* last addr on device */ - uint64_t l2ad_evict; /* last addr eviction reached */ boolean_t l2ad_first; /* first sweep through */ boolean_t l2ad_writing; /* currently writing */ kmutex_t l2ad_mtx; /* lock for buffer list */ list_t l2ad_buflist; /* buffer list */ list_node_t l2ad_node; /* device list node */ + refcount_t l2ad_alloc; /* allocated bytes */ } l2arc_dev_t; typedef struct l2arc_buf_hdr { |