Lines Matching refs:xl_entry
201 struct ocfs2_xattr_entry *xl_entry; member
1494 loc->xl_entry->xe_name_hash = cpu_to_le32(name_hash); in ocfs2_xa_add_entry()
1500 loc->xl_entry->xe_name_offset = cpu_to_le16(loc->xl_size); in ocfs2_xa_add_entry()
1511 loc->xl_entry->xe_value_size = cpu_to_le64(xi->xi_value_len); in ocfs2_xa_add_namevalue()
1512 loc->xl_entry->xe_name_len = xi->xi_name_len; in ocfs2_xa_add_namevalue()
1513 ocfs2_xattr_set_type(loc->xl_entry, xi->xi_name_index); in ocfs2_xa_add_namevalue()
1514 ocfs2_xattr_set_local(loc->xl_entry, in ocfs2_xa_add_namevalue()
1517 nameval_offset = le16_to_cpu(loc->xl_entry->xe_name_offset); in ocfs2_xa_add_namevalue()
1526 int nameval_offset = le16_to_cpu(loc->xl_entry->xe_name_offset); in ocfs2_xa_fill_value_buf()
1527 int name_size = OCFS2_XATTR_SIZE(loc->xl_entry->xe_name_len); in ocfs2_xa_fill_value_buf()
1530 BUG_ON(ocfs2_xattr_is_local(loc->xl_entry)); in ocfs2_xa_fill_value_buf()
1531 BUG_ON(namevalue_size_xe(loc->xl_entry) != in ocfs2_xa_fill_value_buf()
1577 return namevalue_size_xe(loc->xl_entry) == in ocfs2_xa_block_can_reuse()
1608 if (loc->xl_entry) { in ocfs2_xa_block_check_space()
1613 needed_space -= ocfs2_xe_entry_usage(loc->xl_entry); in ocfs2_xa_block_check_space()
1628 struct ocfs2_xattr_entry *entry = loc->xl_entry; in ocfs2_xa_block_wipe_namevalue()
1659 loc->xl_entry = &(loc->xl_header->xh_entries[count]); in ocfs2_xa_block_add_entry()
1661 memset(loc->xl_entry, 0, sizeof(struct ocfs2_xattr_entry)); in ocfs2_xa_block_add_entry()
1668 loc->xl_entry->xe_name_offset = cpu_to_le16(free_start - size); in ocfs2_xa_block_add_namevalue()
1734 return namevalue_size_xe(loc->xl_entry) >= in ocfs2_xa_bucket_can_reuse()
1774 if (loc->xl_entry) { in ocfs2_xa_bucket_check_space()
1806 -namevalue_size_xe(loc->xl_entry)); in ocfs2_xa_bucket_wipe_namevalue()
1840 loc->xl_entry = &xh->xh_entries[low]; in ocfs2_xa_bucket_add_entry()
1841 memset(loc->xl_entry, 0, sizeof(struct ocfs2_xattr_entry)); in ocfs2_xa_bucket_add_entry()
1853 loc->xl_entry->xe_name_offset = cpu_to_le16(nameval_offset); in ocfs2_xa_bucket_add_namevalue()
1864 int nameval_offset = le16_to_cpu(loc->xl_entry->xe_name_offset); in ocfs2_xa_bucket_fill_value_buf()
1865 int size = namevalue_size_xe(loc->xl_entry); in ocfs2_xa_bucket_fill_value_buf()
1896 if (ocfs2_xattr_is_local(loc->xl_entry)) in ocfs2_xa_value_clusters()
1934 struct ocfs2_xattr_entry *entry = loc->xl_entry; in ocfs2_xa_remove_entry()
1937 loc->xl_entry = NULL; in ocfs2_xa_remove_entry()
1987 le16_to_cpu(loc->xl_entry->xe_name_offset)); in ocfs2_xa_cleanup_value_truncate()
1993 what, loc->xl_entry->xe_name_len, nameval_buf, in ocfs2_xa_cleanup_value_truncate()
2001 loc->xl_entry->xe_name_len, nameval_buf, in ocfs2_xa_cleanup_value_truncate()
2009 loc->xl_entry->xe_name_len, nameval_buf, in ocfs2_xa_cleanup_value_truncate()
2019 if (!ocfs2_xattr_is_local(loc->xl_entry)) { in ocfs2_xa_remove()
2047 int name_size = OCFS2_XATTR_SIZE(loc->xl_entry->xe_name_len); in ocfs2_xa_install_value_root()
2051 le16_to_cpu(loc->xl_entry->xe_name_offset)); in ocfs2_xa_install_value_root()
2068 int xe_local = ocfs2_xattr_is_local(loc->xl_entry); in ocfs2_xa_reuse_entry()
2071 BUG_ON(OCFS2_XATTR_SIZE(loc->xl_entry->xe_name_len) != in ocfs2_xa_reuse_entry()
2075 le16_to_cpu(loc->xl_entry->xe_name_offset)); in ocfs2_xa_reuse_entry()
2078 namevalue_size_xe(loc->xl_entry) - name_size); in ocfs2_xa_reuse_entry()
2089 namevalue_size_xe(loc->xl_entry) - in ocfs2_xa_reuse_entry()
2091 } else if (le64_to_cpu(loc->xl_entry->xe_value_size) > in ocfs2_xa_reuse_entry()
2106 loc->xl_entry->xe_value_size = cpu_to_le64(xi->xi_value_len); in ocfs2_xa_reuse_entry()
2107 ocfs2_xattr_set_local(loc->xl_entry, xi_local); in ocfs2_xa_reuse_entry()
2134 if (loc->xl_entry) { in ocfs2_xa_prepare_entry()
2136 orig_value_size = loc->xl_entry->xe_value_size; in ocfs2_xa_prepare_entry()
2143 if (!ocfs2_xattr_is_local(loc->xl_entry)) { in ocfs2_xa_prepare_entry()
2180 if (loc->xl_entry) { in ocfs2_xa_prepare_entry()
2182 loc->xl_entry->xe_value_size = orig_value_size; in ocfs2_xa_prepare_entry()
2202 int nameval_offset = le16_to_cpu(loc->xl_entry->xe_name_offset); in ocfs2_xa_store_value()
2277 loc->xl_entry = entry; in ocfs2_init_dinode_xa_loc()
2298 loc->xl_entry = entry; in ocfs2_init_xattr_block_xa_loc()
2311 loc->xl_entry = entry; in ocfs2_init_xattr_bucket_xa_loc()
2797 xs->here = loc.xl_entry; in ocfs2_xattr_ibody_set()
2983 xs->here = loc.xl_entry; in ocfs2_xattr_block_set()
5556 xs->here = loc.xl_entry; in ocfs2_xattr_set_entry_bucket()
5574 xs->here = loc.xl_entry; in ocfs2_xattr_set_entry_bucket()