spa_misc.c (321529) | spa_misc.c (321547) |
---|---|
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 --- 1747 unchanged lines hidden (view full) --- 1756uint64_t 1757spa_freeze_txg(spa_t *spa) 1758{ 1759 return (spa->spa_freeze_txg); 1760} 1761 1762/* ARGSUSED */ 1763uint64_t | 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 --- 1747 unchanged lines hidden (view full) --- 1756uint64_t 1757spa_freeze_txg(spa_t *spa) 1758{ 1759 return (spa->spa_freeze_txg); 1760} 1761 1762/* ARGSUSED */ 1763uint64_t |
1764spa_get_asize(spa_t *spa, uint64_t lsize) | 1764spa_get_worst_case_asize(spa_t *spa, uint64_t lsize) |
1765{ 1766 return (lsize * spa_asize_inflation); 1767} 1768 1769/* 1770 * Return the amount of slop space in bytes. It is 1/32 of the pool (3.2%), 1771 * or at least 128MB, unless that would cause it to be more than half the 1772 * pool size. --- 414 unchanged lines hidden --- | 1765{ 1766 return (lsize * spa_asize_inflation); 1767} 1768 1769/* 1770 * Return the amount of slop space in bytes. It is 1/32 of the pool (3.2%), 1771 * or at least 128MB, unless that would cause it to be more than half the 1772 * pool size. --- 414 unchanged lines hidden --- |