mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-24 11:18:52 +03:00
Undo c89 workarounds to match with upstream
With PR 5756 the zfs module now supports c99 and the remaining past c89 workarounds can be undone. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: George Melikov <mail@gmelikov.ru> Signed-off-by: Don Brady <don.brady@delphix.com> Closes #6816
This commit is contained in:
committed by
Brian Behlendorf
parent
df1f129bc4
commit
1c27024e22
@@ -144,13 +144,11 @@ space_map_histogram_clear(space_map_t *sm)
|
||||
boolean_t
|
||||
space_map_histogram_verify(space_map_t *sm, range_tree_t *rt)
|
||||
{
|
||||
int i;
|
||||
|
||||
/*
|
||||
* Verify that the in-core range tree does not have any
|
||||
* ranges smaller than our sm_shift size.
|
||||
*/
|
||||
for (i = 0; i < sm->sm_shift; i++) {
|
||||
for (int i = 0; i < sm->sm_shift; i++) {
|
||||
if (rt->rt_histogram[i] != 0)
|
||||
return (B_FALSE);
|
||||
}
|
||||
@@ -161,7 +159,6 @@ void
|
||||
space_map_histogram_add(space_map_t *sm, range_tree_t *rt, dmu_tx_t *tx)
|
||||
{
|
||||
int idx = 0;
|
||||
int i;
|
||||
|
||||
ASSERT(MUTEX_HELD(rt->rt_lock));
|
||||
ASSERT(dmu_tx_is_syncing(tx));
|
||||
@@ -181,7 +178,7 @@ space_map_histogram_add(space_map_t *sm, range_tree_t *rt, dmu_tx_t *tx)
|
||||
* map only cares about allocatable blocks (minimum of sm_shift) we
|
||||
* can safely ignore all ranges in the range tree smaller than sm_shift.
|
||||
*/
|
||||
for (i = sm->sm_shift; i < RANGE_TREE_HISTOGRAM_SIZE; i++) {
|
||||
for (int i = sm->sm_shift; i < RANGE_TREE_HISTOGRAM_SIZE; i++) {
|
||||
|
||||
/*
|
||||
* Since the largest histogram bucket in the space map is
|
||||
|
||||
Reference in New Issue
Block a user