Lines Matching refs:hash
338 static void ext4_xattr_inode_set_hash(struct inode *ea_inode, u32 hash) in ext4_xattr_inode_set_hash() argument
340 ea_inode->i_atime.tv_sec = hash; in ext4_xattr_inode_set_hash()
454 u32 hash; in ext4_xattr_inode_verify_hashes() local
457 hash = ext4_xattr_inode_hash(EXT4_SB(ea_inode->i_sb), buffer, size); in ext4_xattr_inode_verify_hashes()
458 if (hash != ext4_xattr_inode_get_hash(ea_inode)) in ext4_xattr_inode_verify_hashes()
465 tmp_data = cpu_to_le32(hash); in ext4_xattr_inode_verify_hashes()
1220 u32 hash, ref; in ext4_xattr_release_block() local
1230 hash = le32_to_cpu(BHDR(bh)->h_hash); in ext4_xattr_release_block()
1241 oe = mb_cache_entry_delete_or_get(ea_block_cache, hash, in ext4_xattr_release_block()
1270 ce = mb_cache_entry_get(ea_block_cache, hash, in ext4_xattr_release_block()
1407 struct inode *inode, u32 hash) in ext4_xattr_inode_create() argument
1434 ext4_xattr_inode_set_hash(ea_inode, hash); in ext4_xattr_inode_create()
1462 size_t value_len, u32 hash) in ext4_xattr_inode_cache_find() argument
1472 ce = mb_cache_entry_find_first(ea_inode_cache, hash); in ext4_xattr_inode_cache_find()
1517 u32 hash; in ext4_xattr_inode_lookup_create() local
1520 hash = ext4_xattr_inode_hash(EXT4_SB(inode->i_sb), value, value_len); in ext4_xattr_inode_lookup_create()
1521 ea_inode = ext4_xattr_inode_cache_find(inode, value, value_len, hash); in ext4_xattr_inode_lookup_create()
1534 ea_inode = ext4_xattr_inode_create(handle, inode, hash); in ext4_xattr_inode_lookup_create()
1546 mb_cache_entry_create(EA_INODE_CACHE(inode), GFP_NOFS, hash, in ext4_xattr_inode_lookup_create()
1781 __le32 hash = 0; in ext4_xattr_set_entry() local
1794 hash = ext4_xattr_hash_entry(here->e_name, in ext4_xattr_set_entry()
1801 hash = ext4_xattr_hash_entry(here->e_name, in ext4_xattr_set_entry()
1805 here->e_hash = hash; in ext4_xattr_set_entry()
1890 __u32 hash = le32_to_cpu(BHDR(bs->bh)->h_hash); in ext4_xattr_block_set() local
1901 hash, bs->bh->b_blocknr); in ext4_xattr_block_set()
2984 __u32 hash = le32_to_cpu(header->h_hash); in ext4_xattr_block_cache_insert() local
2991 error = mb_cache_entry_create(ea_block_cache, GFP_NOFS, hash, in ext4_xattr_block_cache_insert()
2997 ea_bdebug(bh, "inserting [%x]", (int)hash); in ext4_xattr_block_cache_insert()
3053 __u32 hash = le32_to_cpu(header->h_hash); in ext4_xattr_block_cache_find() local
3061 ea_idebug(inode, "looking for cached blocks [%x]", (int)hash); in ext4_xattr_block_cache_find()
3062 ce = mb_cache_entry_find_first(ea_block_cache, hash); in ext4_xattr_block_cache_find()
3094 __u32 hash = 0; in ext4_xattr_hash_entry() local
3097 hash = (hash << NAME_HASH_SHIFT) ^ in ext4_xattr_hash_entry()
3098 (hash >> (8*sizeof(hash) - NAME_HASH_SHIFT)) ^ in ext4_xattr_hash_entry()
3102 hash = (hash << VALUE_HASH_SHIFT) ^ in ext4_xattr_hash_entry()
3103 (hash >> (8*sizeof(hash) - VALUE_HASH_SHIFT)) ^ in ext4_xattr_hash_entry()
3106 return cpu_to_le32(hash); in ext4_xattr_hash_entry()
3122 __u32 hash = 0; in ext4_xattr_rehash() local
3128 hash = 0; in ext4_xattr_rehash()
3131 hash = (hash << BLOCK_HASH_SHIFT) ^ in ext4_xattr_rehash()
3132 (hash >> (8*sizeof(hash) - BLOCK_HASH_SHIFT)) ^ in ext4_xattr_rehash()
3136 header->h_hash = cpu_to_le32(hash); in ext4_xattr_rehash()