Rev 3628 | Rev 4509 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3628 | Rev 3638 | ||
---|---|---|---|
Line 434... | Line 434... | ||
434 | futex_down(&used_futex); |
434 | futex_down(&used_futex); |
435 | hash_table_insert(&up_hash, pkey, &idx->uph_link); |
435 | hash_table_insert(&up_hash, pkey, &idx->uph_link); |
436 | futex_up(&used_futex); |
436 | futex_up(&used_futex); |
437 | } |
437 | } |
438 | 438 | ||
- | 439 | void fat_idx_hashout(fat_idx_t *idx) |
|
- | 440 | { |
|
- | 441 | unsigned long pkey[] = { |
|
- | 442 | [UPH_DH_KEY] = idx->dev_handle, |
|
- | 443 | [UPH_PFC_KEY] = idx->pfc, |
|
- | 444 | [UPH_PDI_KEY] = idx->pdi, |
|
- | 445 | }; |
|
- | 446 | ||
- | 447 | futex_down(&used_futex); |
|
- | 448 | hash_table_remove(&up_hash, pkey, 3); |
|
- | 449 | futex_up(&used_futex); |
|
- | 450 | } |
|
- | 451 | ||
439 | fat_idx_t * |
452 | fat_idx_t * |
440 | fat_idx_get_by_index(dev_handle_t dev_handle, fs_index_t index) |
453 | fat_idx_get_by_index(dev_handle_t dev_handle, fs_index_t index) |
441 | { |
454 | { |
442 | fat_idx_t *fidx = NULL; |
455 | fat_idx_t *fidx = NULL; |
443 | link_t *l; |
456 | link_t *l; |