Lines Matching refs:hash
332 static void ext4_xattr_inode_set_hash(struct inode *ea_inode, u32 hash) in ext4_xattr_inode_set_hash() argument
334 ea_inode->i_atime.tv_sec = hash; in ext4_xattr_inode_set_hash()
442 u32 hash; in ext4_xattr_inode_verify_hashes() local
445 hash = ext4_xattr_inode_hash(EXT4_SB(ea_inode->i_sb), buffer, size); in ext4_xattr_inode_verify_hashes()
446 if (hash != ext4_xattr_inode_get_hash(ea_inode)) in ext4_xattr_inode_verify_hashes()
453 tmp_data = cpu_to_le32(hash); in ext4_xattr_inode_verify_hashes()
1025 u32 hash; in ext4_xattr_inode_update_ref() local
1050 hash = ext4_xattr_inode_get_hash(ea_inode); in ext4_xattr_inode_update_ref()
1052 GFP_NOFS, hash, in ext4_xattr_inode_update_ref()
1070 hash = ext4_xattr_inode_get_hash(ea_inode); in ext4_xattr_inode_update_ref()
1071 mb_cache_entry_delete(ea_inode_cache, hash, in ext4_xattr_inode_update_ref()
1244 u32 hash, ref; in ext4_xattr_release_block() local
1253 hash = le32_to_cpu(BHDR(bh)->h_hash); in ext4_xattr_release_block()
1262 mb_cache_entry_delete(ea_block_cache, hash, in ext4_xattr_release_block()
1284 ce = mb_cache_entry_get(ea_block_cache, hash, in ext4_xattr_release_block()
1420 struct inode *inode, u32 hash) in ext4_xattr_inode_create() argument
1440 ext4_xattr_inode_set_hash(ea_inode, hash); in ext4_xattr_inode_create()
1465 size_t value_len, u32 hash) in ext4_xattr_inode_cache_find() argument
1475 ce = mb_cache_entry_find_first(ea_inode_cache, hash); in ext4_xattr_inode_cache_find()
1518 u32 hash; in ext4_xattr_inode_lookup_create() local
1521 hash = ext4_xattr_inode_hash(EXT4_SB(inode->i_sb), value, value_len); in ext4_xattr_inode_lookup_create()
1522 ea_inode = ext4_xattr_inode_cache_find(inode, value, value_len, hash); in ext4_xattr_inode_lookup_create()
1535 ea_inode = ext4_xattr_inode_create(handle, inode, hash); in ext4_xattr_inode_lookup_create()
1547 mb_cache_entry_create(EA_INODE_CACHE(inode), GFP_NOFS, hash, in ext4_xattr_inode_lookup_create()
1768 __le32 hash = 0; in ext4_xattr_set_entry() local
1781 hash = ext4_xattr_hash_entry(here->e_name, in ext4_xattr_set_entry()
1788 hash = ext4_xattr_hash_entry(here->e_name, in ext4_xattr_set_entry()
1792 here->e_hash = hash; in ext4_xattr_set_entry()
1872 __u32 hash = le32_to_cpu(BHDR(bs->bh)->h_hash); in ext4_xattr_block_set() local
1880 mb_cache_entry_delete(ea_block_cache, hash, in ext4_xattr_block_set()
2978 __u32 hash = le32_to_cpu(header->h_hash); in ext4_xattr_block_cache_insert() local
2985 error = mb_cache_entry_create(ea_block_cache, GFP_NOFS, hash, in ext4_xattr_block_cache_insert()
2991 ea_bdebug(bh, "inserting [%x]", (int)hash); in ext4_xattr_block_cache_insert()
3047 __u32 hash = le32_to_cpu(header->h_hash); in ext4_xattr_block_cache_find() local
3055 ea_idebug(inode, "looking for cached blocks [%x]", (int)hash); in ext4_xattr_block_cache_find()
3056 ce = mb_cache_entry_find_first(ea_block_cache, hash); in ext4_xattr_block_cache_find()
3088 __u32 hash = 0; in ext4_xattr_hash_entry() local
3091 hash = (hash << NAME_HASH_SHIFT) ^ in ext4_xattr_hash_entry()
3092 (hash >> (8*sizeof(hash) - NAME_HASH_SHIFT)) ^ in ext4_xattr_hash_entry()
3096 hash = (hash << VALUE_HASH_SHIFT) ^ in ext4_xattr_hash_entry()
3097 (hash >> (8*sizeof(hash) - VALUE_HASH_SHIFT)) ^ in ext4_xattr_hash_entry()
3100 return cpu_to_le32(hash); in ext4_xattr_hash_entry()
3116 __u32 hash = 0; in ext4_xattr_rehash() local
3122 hash = 0; in ext4_xattr_rehash()
3125 hash = (hash << BLOCK_HASH_SHIFT) ^ in ext4_xattr_rehash()
3126 (hash >> (8*sizeof(hash) - BLOCK_HASH_SHIFT)) ^ in ext4_xattr_rehash()
3130 header->h_hash = cpu_to_le32(hash); in ext4_xattr_rehash()