summaryrefslogtreecommitdiffstats
path: root/module/zfs/zap.c
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2010-08-26 10:30:13 -0700
committerBrian Behlendorf <[email protected]>2010-08-31 08:38:46 -0700
commitef5319df8e1272f6d89e3b79e248c34f286ae049 (patch)
tree80b167152879c0259398d012dbb05baa951b531e /module/zfs/zap.c
parenteaa8687be33318ae07d61a91e0069244b326f450 (diff)
Fix rw_init() usage
Properly initialize rwlock primitives. Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'module/zfs/zap.c')
-rw-r--r--module/zfs/zap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/zfs/zap.c b/module/zfs/zap.c
index 89446a4fb..fa7e61711 100644
--- a/module/zfs/zap.c
+++ b/module/zfs/zap.c
@@ -394,7 +394,7 @@ zap_create_leaf(zap_t *zap, dmu_tx_t *tx)
ASSERT(RW_WRITE_HELD(&zap->zap_rwlock));
- rw_init(&l->l_rwlock, 0, 0, 0);
+ rw_init(&l->l_rwlock, NULL, RW_DEFAULT, NULL);
rw_enter(&l->l_rwlock, RW_WRITER);
l->l_blkid = zap_allocate_blocks(zap, 1);
l->l_dbuf = NULL;
@@ -453,7 +453,7 @@ zap_open_leaf(uint64_t blkid, dmu_buf_t *db)
ASSERT(blkid != 0);
l = kmem_alloc(sizeof (zap_leaf_t), KM_SLEEP);
- rw_init(&l->l_rwlock, 0, 0, 0);
+ rw_init(&l->l_rwlock, NULL, RW_DEFAULT, NULL);
rw_enter(&l->l_rwlock, RW_WRITER);
l->l_blkid = blkid;
l->l_bs = highbit(db->db_size)-1;