Reduce diff against vendor - we have now stronger check for "mutex already

initialized", so we can go back to kmem_alloc().
This commit is contained in:
Pawel Jakub Dawidek 2007-04-10 02:19:12 +00:00
parent 75efd6fd67
commit 52124c7f1c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=168565
2 changed files with 4 additions and 4 deletions

View File

@ -382,7 +382,7 @@ static zap_leaf_t *
zap_create_leaf(zap_t *zap, dmu_tx_t *tx)
{
void *winner;
zap_leaf_t *l = kmem_zalloc(sizeof (zap_leaf_t), KM_SLEEP);
zap_leaf_t *l = kmem_alloc(sizeof (zap_leaf_t), KM_SLEEP);
ASSERT(RW_WRITE_HELD(&zap->zap_rwlock));
@ -443,7 +443,7 @@ zap_open_leaf(uint64_t blkid, dmu_buf_t *db)
ASSERT(blkid != 0);
l = kmem_zalloc(sizeof (zap_leaf_t), KM_SLEEP);
l = kmem_alloc(sizeof (zap_leaf_t), KM_SLEEP);
rw_init(&l->l_rwlock, NULL, RW_DEFAULT, 0);
rw_enter(&l->l_rwlock, RW_WRITER);
l->l_blkid = blkid;

View File

@ -382,7 +382,7 @@ static zap_leaf_t *
zap_create_leaf(zap_t *zap, dmu_tx_t *tx)
{
void *winner;
zap_leaf_t *l = kmem_zalloc(sizeof (zap_leaf_t), KM_SLEEP);
zap_leaf_t *l = kmem_alloc(sizeof (zap_leaf_t), KM_SLEEP);
ASSERT(RW_WRITE_HELD(&zap->zap_rwlock));
@ -443,7 +443,7 @@ zap_open_leaf(uint64_t blkid, dmu_buf_t *db)
ASSERT(blkid != 0);
l = kmem_zalloc(sizeof (zap_leaf_t), KM_SLEEP);
l = kmem_alloc(sizeof (zap_leaf_t), KM_SLEEP);
rw_init(&l->l_rwlock, NULL, RW_DEFAULT, 0);
rw_enter(&l->l_rwlock, RW_WRITER);
l->l_blkid = blkid;