diff options
author | Brian Behlendorf <[email protected]> | 2010-08-26 10:30:13 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2010-08-31 08:38:46 -0700 |
commit | ef5319df8e1272f6d89e3b79e248c34f286ae049 (patch) | |
tree | 80b167152879c0259398d012dbb05baa951b531e /module/zfs/zap_micro.c | |
parent | eaa8687be33318ae07d61a91e0069244b326f450 (diff) |
Fix rw_init() usage
Properly initialize rwlock primitives.
Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'module/zfs/zap_micro.c')
-rw-r--r-- | module/zfs/zap_micro.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/zap_micro.c b/module/zfs/zap_micro.c index 7627504a9..aa86bdecb 100644 --- a/module/zfs/zap_micro.c +++ b/module/zfs/zap_micro.c @@ -365,7 +365,7 @@ mzap_open(objset_t *os, uint64_t obj, dmu_buf_t *db) ASSERT3U(MZAP_ENT_LEN, ==, sizeof (mzap_ent_phys_t)); zap = kmem_zalloc(sizeof (zap_t), KM_SLEEP); - rw_init(&zap->zap_rwlock, 0, 0, 0); + rw_init(&zap->zap_rwlock, NULL, RW_DEFAULT, NULL); rw_enter(&zap->zap_rwlock, RW_WRITER); zap->zap_objset = os; zap->zap_object = obj; |