Lines Matching refs:hash
1133 __u32 hash = le32_to_cpu(BHDR(bh)->h_hash);
1142 error = mb_cache_entry_insert(ce, bh->b_bdev, bh->b_blocknr, hash);
1150 ea_bdebug(bh, "inserting [%x]", (int)hash);
1207 __u32 hash = le32_to_cpu(header->h_hash);
1212 ea_idebug(inode, "looking for cached blocks [%x]", (int)hash);
1215 hash);
1240 ce = mb_cache_entry_find_next(ce, inode->i_sb->s_bdev, hash);
1251 * Compute the hash of an extended attribute.
1256 __u32 hash = 0;
1261 hash = (hash << NAME_HASH_SHIFT) ^
1262 (hash >> (8*sizeof(hash) - NAME_HASH_SHIFT)) ^
1271 hash = (hash << VALUE_HASH_SHIFT) ^
1272 (hash >> (8*sizeof(hash) - VALUE_HASH_SHIFT)) ^
1276 entry->e_hash = cpu_to_le32(hash);
1287 * Re-compute the extended attribute hash value after an entry has changed.
1293 __u32 hash = 0;
1299 /* Block is not shared if an entry's hash value == 0 */
1300 hash = 0;
1303 hash = (hash << BLOCK_HASH_SHIFT) ^
1304 (hash >> (8*sizeof(hash) - BLOCK_HASH_SHIFT)) ^
1308 header->h_hash = cpu_to_le32(hash);