git://git.camperquake.de
/
zfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Illumos #3085: zfs diff panics, then panics in a loop on booting
[zfs.git]
/
module
/
zfs
/
spa_history.c
diff --git
a/module/zfs/spa_history.c
b/module/zfs/spa_history.c
index
243f2b4
..
7a25378
100644
(file)
--- a/
module/zfs/spa_history.c
+++ b/
module/zfs/spa_history.c
@@
-21,6
+21,7
@@
/*
* Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
/*
* Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2011 by Delphix. All rights reserved.
*/
#include <sys/spa.h>
*/
#include <sys/spa.h>
@@
-101,11
+102,11
@@
spa_history_create_obj(spa_t *spa, dmu_tx_t *tx)
/*
* Figure out maximum size of history log. We set it at
/*
* Figure out maximum size of history log. We set it at
- *
1% of pool size, with a max of 32MB
and min of 128KB.
+ *
0.1% of pool size, with a max of 1G
and min of 128KB.
*/
shpp->sh_phys_max_off =
*/
shpp->sh_phys_max_off =
- metaslab_class_get_dspace(spa_normal_class(spa)) / 100;
- shpp->sh_phys_max_off = MIN(shpp->sh_phys_max_off,
32<<2
0);
+ metaslab_class_get_dspace(spa_normal_class(spa)) / 100
0
;
+ shpp->sh_phys_max_off = MIN(shpp->sh_phys_max_off,
1<<3
0);
shpp->sh_phys_max_off = MAX(shpp->sh_phys_max_off, 128<<10);
dmu_buf_rele(dbp, FTAG);
shpp->sh_phys_max_off = MAX(shpp->sh_phys_max_off, 128<<10);
dmu_buf_rele(dbp, FTAG);