Lines Matching refs:name_hash
179 void (*xlo_add_entry)(struct ocfs2_xa_loc *loc, u32 name_hash);
1497 static void ocfs2_xa_add_entry(struct ocfs2_xa_loc *loc, u32 name_hash) in ocfs2_xa_add_entry() argument
1499 loc->xl_ops->xlo_add_entry(loc, name_hash); in ocfs2_xa_add_entry()
1500 loc->xl_entry->xe_name_hash = cpu_to_le32(name_hash); in ocfs2_xa_add_entry()
1662 static void ocfs2_xa_block_add_entry(struct ocfs2_xa_loc *loc, u32 name_hash) in ocfs2_xa_block_add_entry() argument
1815 static void ocfs2_xa_bucket_add_entry(struct ocfs2_xa_loc *loc, u32 name_hash) in ocfs2_xa_bucket_add_entry() argument
1830 if (name_hash > le32_to_cpu(tmp_xe->xe_name_hash)) in ocfs2_xa_bucket_add_entry()
1832 else if (name_hash < le32_to_cpu(tmp_xe->xe_name_hash)) in ocfs2_xa_bucket_add_entry()
2129 u32 name_hash, in ocfs2_xa_prepare_entry() argument
2162 ocfs2_xa_add_entry(loc, name_hash); in ocfs2_xa_prepare_entry()
2231 u32 name_hash = ocfs2_xattr_name_hash(loc->xl_inode, xi->xi_name, in ocfs2_xa_set() local
2253 ret = ocfs2_xa_prepare_entry(loc, xi, name_hash, ctxt); in ocfs2_xa_set()
3688 u32 name_hash, in ocfs2_xattr_get_rec() argument
3701 ret = ocfs2_find_leaf(INODE_CACHE(inode), el, name_hash, in ocfs2_xattr_get_rec()
3723 if (le32_to_cpu(rec->e_cpos) <= name_hash) { in ocfs2_xattr_get_rec()
3754 u32 name_hash, in ocfs2_find_xe_in_bucket() argument
3771 if (name_hash > le32_to_cpu(xe->xe_name_hash)) in ocfs2_find_xe_in_bucket()
3773 else if (name_hash < le32_to_cpu(xe->xe_name_hash)) in ocfs2_find_xe_in_bucket()
3817 u32 name_hash, in ocfs2_xattr_bucket_find() argument
3861 if (name_hash < le32_to_cpu(xe->xe_name_hash)) { in ocfs2_xattr_bucket_find()
3879 if (name_hash > le32_to_cpu(xe->xe_name_hash)) { in ocfs2_xattr_bucket_find()
3886 name_index, name, name_hash, in ocfs2_xattr_bucket_find()
3917 name, name_index, name_hash, in ocfs2_xattr_bucket_find()
3941 u32 name_hash = ocfs2_xattr_name_hash(inode, name, strlen(name)); in ocfs2_xattr_index_block_find() local
3947 name, name_index, name_hash, in ocfs2_xattr_index_block_find()
3951 ret = ocfs2_xattr_get_rec(inode, name_hash, &p_blkno, &first_hash, in ocfs2_xattr_index_block_find()
3958 BUG_ON(p_blkno == 0 || num_clusters == 0 || first_hash > name_hash); in ocfs2_xattr_index_block_find()
3965 ret = ocfs2_xattr_bucket_find(inode, name_index, name, name_hash, in ocfs2_xattr_index_block_find()
4095 u32 name_hash = UINT_MAX, e_cpos = 0, num_clusters = 0; in ocfs2_iterate_xattr_index_block() local
4101 while (name_hash > 0) { in ocfs2_iterate_xattr_index_block()
4102 ret = ocfs2_xattr_get_rec(inode, name_hash, &p_blkno, in ocfs2_iterate_xattr_index_block()
4120 name_hash = e_cpos - 1; in ocfs2_iterate_xattr_index_block()
5283 u32 name_hash = in ocfs2_add_new_xattr_bucket() local
5303 ret = ocfs2_xattr_get_rec(inode, name_hash, &p_blkno, &e_cpos, in ocfs2_add_new_xattr_bucket()
5528 u32 name_hash = ocfs2_xattr_name_hash(inode, name, strlen(name)); in ocfs2_check_xattr_bucket_collision() local
5530 if (name_hash != le32_to_cpu(xh->xh_entries[0].xe_name_hash)) in ocfs2_check_xattr_bucket_collision()