Lines Matching refs:name_hash
179 void (*xlo_add_entry)(struct ocfs2_xa_loc *loc, u32 name_hash);
1501 static void ocfs2_xa_add_entry(struct ocfs2_xa_loc *loc, u32 name_hash) in ocfs2_xa_add_entry() argument
1503 loc->xl_ops->xlo_add_entry(loc, name_hash); in ocfs2_xa_add_entry()
1504 loc->xl_entry->xe_name_hash = cpu_to_le32(name_hash); in ocfs2_xa_add_entry()
1666 static void ocfs2_xa_block_add_entry(struct ocfs2_xa_loc *loc, u32 name_hash) in ocfs2_xa_block_add_entry() argument
1819 static void ocfs2_xa_bucket_add_entry(struct ocfs2_xa_loc *loc, u32 name_hash) in ocfs2_xa_bucket_add_entry() argument
1834 if (name_hash > le32_to_cpu(tmp_xe->xe_name_hash)) in ocfs2_xa_bucket_add_entry()
1836 else if (name_hash < le32_to_cpu(tmp_xe->xe_name_hash)) in ocfs2_xa_bucket_add_entry()
2133 u32 name_hash, in ocfs2_xa_prepare_entry() argument
2166 ocfs2_xa_add_entry(loc, name_hash); in ocfs2_xa_prepare_entry()
2235 u32 name_hash = ocfs2_xattr_name_hash(loc->xl_inode, xi->xi_name, in ocfs2_xa_set() local
2257 ret = ocfs2_xa_prepare_entry(loc, xi, name_hash, ctxt); in ocfs2_xa_set()
3694 u32 name_hash, in ocfs2_xattr_get_rec() argument
3707 ret = ocfs2_find_leaf(INODE_CACHE(inode), el, name_hash, in ocfs2_xattr_get_rec()
3729 if (le32_to_cpu(rec->e_cpos) <= name_hash) { in ocfs2_xattr_get_rec()
3760 u32 name_hash, in ocfs2_find_xe_in_bucket() argument
3777 if (name_hash > le32_to_cpu(xe->xe_name_hash)) in ocfs2_find_xe_in_bucket()
3779 else if (name_hash < le32_to_cpu(xe->xe_name_hash)) in ocfs2_find_xe_in_bucket()
3823 u32 name_hash, in ocfs2_xattr_bucket_find() argument
3867 if (name_hash < le32_to_cpu(xe->xe_name_hash)) { in ocfs2_xattr_bucket_find()
3885 if (name_hash > le32_to_cpu(xe->xe_name_hash)) { in ocfs2_xattr_bucket_find()
3892 name_index, name, name_hash, in ocfs2_xattr_bucket_find()
3923 name, name_index, name_hash, in ocfs2_xattr_bucket_find()
3947 u32 name_hash = ocfs2_xattr_name_hash(inode, name, strlen(name)); in ocfs2_xattr_index_block_find() local
3953 name, name_index, name_hash, in ocfs2_xattr_index_block_find()
3957 ret = ocfs2_xattr_get_rec(inode, name_hash, &p_blkno, &first_hash, in ocfs2_xattr_index_block_find()
3964 BUG_ON(p_blkno == 0 || num_clusters == 0 || first_hash > name_hash); in ocfs2_xattr_index_block_find()
3971 ret = ocfs2_xattr_bucket_find(inode, name_index, name, name_hash, in ocfs2_xattr_index_block_find()
4101 u32 name_hash = UINT_MAX, e_cpos = 0, num_clusters = 0; in ocfs2_iterate_xattr_index_block() local
4107 while (name_hash > 0) { in ocfs2_iterate_xattr_index_block()
4108 ret = ocfs2_xattr_get_rec(inode, name_hash, &p_blkno, in ocfs2_iterate_xattr_index_block()
4126 name_hash = e_cpos - 1; in ocfs2_iterate_xattr_index_block()
5289 u32 name_hash = in ocfs2_add_new_xattr_bucket() local
5309 ret = ocfs2_xattr_get_rec(inode, name_hash, &p_blkno, &e_cpos, in ocfs2_add_new_xattr_bucket()
5534 u32 name_hash = ocfs2_xattr_name_hash(inode, name, strlen(name)); in ocfs2_check_xattr_bucket_collision() local
5536 if (name_hash != le32_to_cpu(xh->xh_entries[0].xe_name_hash)) in ocfs2_check_xattr_bucket_collision()