Deleted Added
full compact
arc.c (332540) arc.c (332551)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 2863 unchanged lines hidden (view full) ---

2872 * freed.
2873 */
2874arc_buf_t *
2875arc_loan_buf(spa_t *spa, boolean_t is_metadata, int size)
2876{
2877 arc_buf_t *buf = arc_alloc_buf(spa, arc_onloan_tag,
2878 is_metadata ? ARC_BUFC_METADATA : ARC_BUFC_DATA, size);
2879
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE

--- 2863 unchanged lines hidden (view full) ---

2872 * freed.
2873 */
2874arc_buf_t *
2875arc_loan_buf(spa_t *spa, boolean_t is_metadata, int size)
2876{
2877 arc_buf_t *buf = arc_alloc_buf(spa, arc_onloan_tag,
2878 is_metadata ? ARC_BUFC_METADATA : ARC_BUFC_DATA, size);
2879
2880 arc_loaned_bytes_update(size);
2880 arc_loaned_bytes_update(arc_buf_size(buf));
2881
2882 return (buf);
2883}
2884
2885arc_buf_t *
2886arc_loan_compressed_buf(spa_t *spa, uint64_t psize, uint64_t lsize,
2887 enum zio_compress compression_type)
2888{
2889 arc_buf_t *buf = arc_alloc_compressed_buf(spa, arc_onloan_tag,
2890 psize, lsize, compression_type);
2891
2881
2882 return (buf);
2883}
2884
2885arc_buf_t *
2886arc_loan_compressed_buf(spa_t *spa, uint64_t psize, uint64_t lsize,
2887 enum zio_compress compression_type)
2888{
2889 arc_buf_t *buf = arc_alloc_compressed_buf(spa, arc_onloan_tag,
2890 psize, lsize, compression_type);
2891
2892 arc_loaned_bytes_update(psize);
2892 arc_loaned_bytes_update(arc_buf_size(buf));
2893
2894 return (buf);
2895}
2896
2897
2898/*
2899 * Return a loaned arc buffer to the arc.
2900 */

--- 5049 unchanged lines hidden ---
2893
2894 return (buf);
2895}
2896
2897
2898/*
2899 * Return a loaned arc buffer to the arc.
2900 */

--- 5049 unchanged lines hidden ---