arc.c (315072) | arc.c (315834) |
---|---|
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 --- 2598 unchanged lines hidden (view full) --- 2607 if (multilist_link_active(&hdr->b_l1hdr.b_arc_node)) { 2608 ASSERT(refcount_is_zero(&hdr->b_l1hdr.b_refcnt)); 2609 ASSERT(state != arc_anon && state != arc_l2c_only); 2610 2611 (void) refcount_remove_many(&state->arcs_esize[type], 2612 size, hdr); 2613 } 2614 (void) refcount_remove_many(&state->arcs_size, size, hdr); | 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 --- 2598 unchanged lines hidden (view full) --- 2607 if (multilist_link_active(&hdr->b_l1hdr.b_arc_node)) { 2608 ASSERT(refcount_is_zero(&hdr->b_l1hdr.b_refcnt)); 2609 ASSERT(state != arc_anon && state != arc_l2c_only); 2610 2611 (void) refcount_remove_many(&state->arcs_esize[type], 2612 size, hdr); 2613 } 2614 (void) refcount_remove_many(&state->arcs_size, size, hdr); |
2615 if (type == ARC_BUFC_METADATA) { 2616 arc_space_return(size, ARC_SPACE_META); 2617 } else { 2618 ASSERT(type == ARC_BUFC_DATA); 2619 arc_space_return(size, ARC_SPACE_DATA); 2620 } |
|
2615 2616 l2arc_free_data_on_write(hdr->b_l1hdr.b_pdata, size, type); 2617} 2618 2619/* 2620 * Share the arc_buf_t's data with the hdr. Whenever we are sharing the 2621 * data buffer, we transfer the refcount ownership to the hdr and update 2622 * the appropriate kstats. --- 4806 unchanged lines hidden --- | 2621 2622 l2arc_free_data_on_write(hdr->b_l1hdr.b_pdata, size, type); 2623} 2624 2625/* 2626 * Share the arc_buf_t's data with the hdr. Whenever we are sharing the 2627 * data buffer, we transfer the refcount ownership to the hdr and update 2628 * the appropriate kstats. --- 4806 unchanged lines hidden --- |