Deleted Added
full compact
sa_impl.h (225736) sa_impl.h (243674)
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

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

15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21/*
22 * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
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

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

15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21/*
22 * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
23 * Copyright (c) 2012 by Delphix. All rights reserved.
23 */
24
25#ifndef _SYS_SA_IMPL_H
26#define _SYS_SA_IMPL_H
27
28#include <sys/dmu.h>
29#include <sys/refcount.h>
30#include <sys/list.h>

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

176 *
177 * For example.
178 * hdrsz of 1 ==> 8 byte header
179 * 2 ==> 16 byte header
180 *
181 */
182
183#define SA_HDR_LAYOUT_NUM(hdr) BF32_GET(hdr->sa_layout_info, 0, 10)
24 */
25
26#ifndef _SYS_SA_IMPL_H
27#define _SYS_SA_IMPL_H
28
29#include <sys/dmu.h>
30#include <sys/refcount.h>
31#include <sys/list.h>

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

177 *
178 * For example.
179 * hdrsz of 1 ==> 8 byte header
180 * 2 ==> 16 byte header
181 *
182 */
183
184#define SA_HDR_LAYOUT_NUM(hdr) BF32_GET(hdr->sa_layout_info, 0, 10)
184#define SA_HDR_SIZE(hdr) BF32_GET_SB(hdr->sa_layout_info, 10, 16, 3, 0)
185#define SA_HDR_SIZE(hdr) BF32_GET_SB(hdr->sa_layout_info, 10, 6, 3, 0)
185#define SA_HDR_LAYOUT_INFO_ENCODE(x, num, size) \
186{ \
187 BF32_SET_SB(x, 10, 6, 3, 0, size); \
188 BF32_SET(x, 0, 10, num); \
189}
190
191typedef enum sa_buf_type {
192 SA_BONUS = 1,

--- 95 unchanged lines hidden ---
186#define SA_HDR_LAYOUT_INFO_ENCODE(x, num, size) \
187{ \
188 BF32_SET_SB(x, 10, 6, 3, 0, size); \
189 BF32_SET(x, 0, 10, num); \
190}
191
192typedef enum sa_buf_type {
193 SA_BONUS = 1,

--- 95 unchanged lines hidden ---