Lines Matching refs:hash
523 __u32 hash = le32_to_cpu(header->h_hash);
530 mb_cache_entry_delete(EA_BLOCK_CACHE(inode), hash,
752 __u32 hash = le32_to_cpu(HDR(old_bh)->h_hash);
758 mb_cache_entry_delete(ea_block_cache, hash,
833 __u32 hash = le32_to_cpu(HDR(bh)->h_hash);
839 mb_cache_entry_delete(EA_BLOCK_CACHE(inode), hash,
873 __u32 hash = le32_to_cpu(HDR(bh)->h_hash);
876 error = mb_cache_entry_create(cache, GFP_NOFS, hash, bh->b_blocknr,
884 ea_bdebug(bh, "inserting [%x]", (int)hash);
939 __u32 hash = le32_to_cpu(header->h_hash);
945 ea_idebug(inode, "looking for cached blocks [%x]", (int)hash);
947 ce = mb_cache_entry_find_first(ea_block_cache, hash);
999 * Compute the hash of an extended attribute.
1004 __u32 hash = 0;
1009 hash = (hash << NAME_HASH_SHIFT) ^
1010 (hash >> (8*sizeof(hash) - NAME_HASH_SHIFT)) ^
1019 hash = (hash << VALUE_HASH_SHIFT) ^
1020 (hash >> (8*sizeof(hash) - VALUE_HASH_SHIFT)) ^
1024 entry->e_hash = cpu_to_le32(hash);
1035 * Re-compute the extended attribute hash value after an entry has changed.
1041 __u32 hash = 0;
1047 /* Block is not shared if an entry's hash value == 0 */
1048 hash = 0;
1051 hash = (hash << BLOCK_HASH_SHIFT) ^
1052 (hash >> (8*sizeof(hash) - BLOCK_HASH_SHIFT)) ^
1056 header->h_hash = cpu_to_le32(hash);