Deleted Added
full compact
zfs_debug.c (256281) zfs_debug.c (268650)
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

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

23 * Copyright (c) 2013 by Delphix. All rights reserved.
24 */
25
26#include <sys/zfs_context.h>
27
28list_t zfs_dbgmsgs;
29int zfs_dbgmsg_size;
30kmutex_t zfs_dbgmsgs_lock;
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

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

23 * Copyright (c) 2013 by Delphix. All rights reserved.
24 */
25
26#include <sys/zfs_context.h>
27
28list_t zfs_dbgmsgs;
29int zfs_dbgmsg_size;
30kmutex_t zfs_dbgmsgs_lock;
31int zfs_dbgmsg_maxsize = 1<<20; /* 1MB */
31int zfs_dbgmsg_maxsize = 4<<20; /* 4MB */
32
33void
34zfs_dbgmsg_init(void)
35{
36 list_create(&zfs_dbgmsgs, sizeof (zfs_dbgmsg_t),
37 offsetof(zfs_dbgmsg_t, zdm_node));
38 mutex_init(&zfs_dbgmsgs_lock, NULL, MUTEX_DEFAULT, NULL);
39}

--- 70 unchanged lines hidden ---
32
33void
34zfs_dbgmsg_init(void)
35{
36 list_create(&zfs_dbgmsgs, sizeof (zfs_dbgmsg_t),
37 offsetof(zfs_dbgmsg_t, zdm_node));
38 mutex_init(&zfs_dbgmsgs_lock, NULL, MUTEX_DEFAULT, NULL);
39}

--- 70 unchanged lines hidden ---