Deleted Added
full compact
txg.c (229568) txg.c (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

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

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) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
23 * Portions Copyright 2011 Martin Matuska <mm@FreeBSD.org>
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

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

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) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
23 * Portions Copyright 2011 Martin Matuska <mm@FreeBSD.org>
24 * Copyright (c) 2012 by Delphix. All rights reserved.
24 */
25
26#include <sys/zfs_context.h>
27#include <sys/txg_impl.h>
28#include <sys/dmu_impl.h>
29#include <sys/dmu_tx.h>
30#include <sys/dsl_pool.h>
31#include <sys/dsl_scan.h>

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

591 int t;
592
593 for (t = 0; t < TXG_SIZE; t++)
594 ASSERT(txg_list_empty(tl, t));
595
596 mutex_destroy(&tl->tl_lock);
597}
598
25 */
26
27#include <sys/zfs_context.h>
28#include <sys/txg_impl.h>
29#include <sys/dmu_impl.h>
30#include <sys/dmu_tx.h>
31#include <sys/dsl_pool.h>
32#include <sys/dsl_scan.h>

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

592 int t;
593
594 for (t = 0; t < TXG_SIZE; t++)
595 ASSERT(txg_list_empty(tl, t));
596
597 mutex_destroy(&tl->tl_lock);
598}
599
599int
600boolean_t
600txg_list_empty(txg_list_t *tl, uint64_t txg)
601{
602 return (tl->tl_head[txg & TXG_MASK] == NULL);
603}
604
605/*
606 * Add an entry to the list.
607 * Returns 0 if it's a new entry, 1 if it's already there.

--- 127 unchanged lines hidden ---
601txg_list_empty(txg_list_t *tl, uint64_t txg)
602{
603 return (tl->tl_head[txg & TXG_MASK] == NULL);
604}
605
606/*
607 * Add an entry to the list.
608 * Returns 0 if it's a new entry, 1 if it's already there.

--- 127 unchanged lines hidden ---