summaryrefslogtreecommitdiffstats
path: root/module/zfs/arc.c
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2009-01-15 14:01:51 -0800
committerBrian Behlendorf <[email protected]>2009-01-15 14:01:51 -0800
commitd3df6b20121622524d1d560740b8008ce2e0d8b8 (patch)
treebb186e9733331474ba0f8fac628194be9f2aefc9 /module/zfs/arc.c
parentb73b29ab8e023a94e9bfbc58c27af8765da9b740 (diff)
parentfb5f0bc83330c8a0236c4d34a23723ac1974971a (diff)
Merge commit 'refs/top-bases/gcc-c90' into gcc-c90
Diffstat (limited to 'module/zfs/arc.c')
-rw-r--r--module/zfs/arc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/module/zfs/arc.c b/module/zfs/arc.c
index fb9f4a038..1e2d8c8df 100644
--- a/module/zfs/arc.c
+++ b/module/zfs/arc.c
@@ -3491,6 +3491,7 @@ arc_fini(void)
mutex_destroy(&arc_mru_ghost->arcs_mtx);
mutex_destroy(&arc_mfu->arcs_mtx);
mutex_destroy(&arc_mfu_ghost->arcs_mtx);
+ mutex_destroy(&arc_l2c_only->arcs_mtx);
mutex_destroy(&zfs_write_limit_lock);
@@ -4457,7 +4458,7 @@ l2arc_fini(void)
void
l2arc_start(void)
{
- if (!(spa_mode & FWRITE))
+ if (!(spa_mode_global & FWRITE))
return;
(void) thread_create(NULL, 0, l2arc_feed_thread, NULL, 0, &p0,
@@ -4467,7 +4468,7 @@ l2arc_start(void)
void
l2arc_stop(void)
{
- if (!(spa_mode & FWRITE))
+ if (!(spa_mode_global & FWRITE))
return;
mutex_enter(&l2arc_feed_thr_lock);