Deleted Added
full compact
dmu_tx.c (240133) dmu_tx.c (240415)
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

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

906static int
907dmu_tx_try_assign(dmu_tx_t *tx, uint64_t txg_how)
908{
909 dmu_tx_hold_t *txh;
910 spa_t *spa = tx->tx_pool->dp_spa;
911 uint64_t memory, asize, fsize, usize;
912 uint64_t towrite, tofree, tooverwrite, tounref, tohold, fudge;
913
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

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

906static int
907dmu_tx_try_assign(dmu_tx_t *tx, uint64_t txg_how)
908{
909 dmu_tx_hold_t *txh;
910 spa_t *spa = tx->tx_pool->dp_spa;
911 uint64_t memory, asize, fsize, usize;
912 uint64_t towrite, tofree, tooverwrite, tounref, tohold, fudge;
913
914 ASSERT3U(tx->tx_txg, ==, 0);
914 ASSERT0(tx->tx_txg);
915
916 if (tx->tx_err)
917 return (tx->tx_err);
918
919 if (spa_suspended(spa)) {
920 /*
921 * If the user has indicated a blocking failure mode
922 * then return ERESTART which will block in dmu_tx_wait().

--- 475 unchanged lines hidden ---
915
916 if (tx->tx_err)
917 return (tx->tx_err);
918
919 if (spa_suspended(spa)) {
920 /*
921 * If the user has indicated a blocking failure mode
922 * then return ERESTART which will block in dmu_tx_wait().

--- 475 unchanged lines hidden ---