Changeset a806bd61 in mainline


Ignore:
Timestamp:
2007-12-19T16:49:50Z (16 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4ada6d5
Parents:
45ee9ed
Message:

VFS work.
Fix VFS node hash function to hash only within the limits of its supposed
ranges.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/vfs/vfs_node.c

    r45ee9ed ra806bd61  
    175175        hash_index_t b = (a | key[KEY_DEV_HANDLE]) << (NODES_BUCKETS_LOG / 2);
    176176       
    177         return (b | key[KEY_INDEX]) & ~(NODES_BUCKETS - 1);
     177        return (b | key[KEY_INDEX]) & (NODES_BUCKETS - 1);
    178178}
    179179
Note: See TracChangeset for help on using the changeset viewer.