Merge commit 'refs/top-bases/linux-zfs-branch' into linux-zfs-branch

This commit is contained in:
Brian Behlendorf 2008-12-18 11:53:11 -08:00
commit 4f27e4d951
1 changed files with 2 additions and 2 deletions

View File

@ -614,10 +614,10 @@ dnode_hold_impl(objset_impl_t *os, uint64_t object, int flag,
} }
if ((dn = children_dnodes[idx]) == NULL) { if ((dn = children_dnodes[idx]) == NULL) {
dnode_phys_t *dnp = (dnode_phys_t *)db->db.db_data+idx; dnode_phys_t *dnpp = (dnode_phys_t *)db->db.db_data+idx;
dnode_t *winner; dnode_t *winner;
dn = dnode_create(os, dnp, db, object); dn = dnode_create(os, dnpp, db, object);
winner = atomic_cas_ptr(&children_dnodes[idx], NULL, dn); winner = atomic_cas_ptr(&children_dnodes[idx], NULL, dn);
if (winner != NULL) { if (winner != NULL) {
dnode_destroy(dn); dnode_destroy(dn);