Changeset 85d31de9 in mainline
- Timestamp:
- 2012-08-20T14:31:24Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b9cb911
- Parents:
- 30c0826
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/adt/cht.c
r30c0826 r85d31de9 1871 1871 static inline size_t calc_key_hash(cht_t *h, void *key) 1872 1872 { 1873 /* Mimic kcalc_node_hash. */1873 /* Mimic calc_node_hash. */ 1874 1874 return hash_mix(h->op->key_hash(key)) & ~(size_t)1; 1875 1875 } -
uspace/srv/fs/locfs/locfs_ops.c
r30c0826 r85d31de9 556 556 557 557 fibril_mutex_lock(&services_mutex); 558 ht_link_t *lnk = hash_table_find(&services, &index); 558 service_id_t service_index = index; 559 ht_link_t *lnk = hash_table_find(&services, &service_index); 559 560 if (lnk == NULL) { 560 561 fibril_mutex_unlock(&services_mutex); … … 619 620 620 621 fibril_mutex_lock(&services_mutex); 621 ht_link_t *lnk = hash_table_find(&services, &index); 622 service_id_t service_index = index; 623 ht_link_t *lnk = hash_table_find(&services, &service_index); 622 624 if (lnk == NULL) { 623 625 fibril_mutex_unlock(&services_mutex); … … 686 688 687 689 fibril_mutex_lock(&services_mutex); 688 ht_link_t *lnk = hash_table_find(&services, &index); 690 service_id_t service_index = index; 691 ht_link_t *lnk = hash_table_find(&services, &service_index); 689 692 if (lnk == NULL) { 690 693 fibril_mutex_unlock(&services_mutex); … … 698 701 if (dev->refcount == 0) { 699 702 async_hangup(dev->sess); 700 hash_table_remove(&services, &index); 703 service_id_t service_index = index; 704 hash_table_remove(&services, &service_index); 701 705 } 702 706 … … 724 728 725 729 fibril_mutex_lock(&services_mutex); 726 ht_link_t *lnk = hash_table_find(&services, &index); 730 service_id_t service_index = index; 731 ht_link_t *lnk = hash_table_find(&services, &service_index); 727 732 if (lnk == NULL) { 728 733 fibril_mutex_unlock(&services_mutex);
Note:
See TracChangeset
for help on using the changeset viewer.