Lines Matching refs:xl_entry

197 	struct ocfs2_xattr_entry *xl_entry;  member
1499 loc->xl_entry->xe_name_hash = cpu_to_le32(name_hash); in ocfs2_xa_add_entry()
1505 loc->xl_entry->xe_name_offset = cpu_to_le16(loc->xl_size); in ocfs2_xa_add_entry()
1516 loc->xl_entry->xe_value_size = cpu_to_le64(xi->xi_value_len); in ocfs2_xa_add_namevalue()
1517 loc->xl_entry->xe_name_len = xi->xi_name_len; in ocfs2_xa_add_namevalue()
1518 ocfs2_xattr_set_type(loc->xl_entry, xi->xi_name_index); in ocfs2_xa_add_namevalue()
1519 ocfs2_xattr_set_local(loc->xl_entry, in ocfs2_xa_add_namevalue()
1522 nameval_offset = le16_to_cpu(loc->xl_entry->xe_name_offset); in ocfs2_xa_add_namevalue()
1531 int nameval_offset = le16_to_cpu(loc->xl_entry->xe_name_offset); in ocfs2_xa_fill_value_buf()
1532 int name_size = OCFS2_XATTR_SIZE(loc->xl_entry->xe_name_len); in ocfs2_xa_fill_value_buf()
1535 BUG_ON(ocfs2_xattr_is_local(loc->xl_entry)); in ocfs2_xa_fill_value_buf()
1536 BUG_ON(namevalue_size_xe(loc->xl_entry) != in ocfs2_xa_fill_value_buf()
1582 return namevalue_size_xe(loc->xl_entry) == in ocfs2_xa_block_can_reuse()
1613 if (loc->xl_entry) { in ocfs2_xa_block_check_space()
1618 needed_space -= ocfs2_xe_entry_usage(loc->xl_entry); in ocfs2_xa_block_check_space()
1633 struct ocfs2_xattr_entry *entry = loc->xl_entry; in ocfs2_xa_block_wipe_namevalue()
1664 loc->xl_entry = &(loc->xl_header->xh_entries[count]); in ocfs2_xa_block_add_entry()
1666 memset(loc->xl_entry, 0, sizeof(struct ocfs2_xattr_entry)); in ocfs2_xa_block_add_entry()
1673 loc->xl_entry->xe_name_offset = cpu_to_le16(free_start - size); in ocfs2_xa_block_add_namevalue()
1739 return namevalue_size_xe(loc->xl_entry) >= in ocfs2_xa_bucket_can_reuse()
1779 if (loc->xl_entry) { in ocfs2_xa_bucket_check_space()
1811 -namevalue_size_xe(loc->xl_entry)); in ocfs2_xa_bucket_wipe_namevalue()
1845 loc->xl_entry = &xh->xh_entries[low]; in ocfs2_xa_bucket_add_entry()
1846 memset(loc->xl_entry, 0, sizeof(struct ocfs2_xattr_entry)); in ocfs2_xa_bucket_add_entry()
1858 loc->xl_entry->xe_name_offset = cpu_to_le16(nameval_offset); in ocfs2_xa_bucket_add_namevalue()
1869 int nameval_offset = le16_to_cpu(loc->xl_entry->xe_name_offset); in ocfs2_xa_bucket_fill_value_buf()
1870 int size = namevalue_size_xe(loc->xl_entry); in ocfs2_xa_bucket_fill_value_buf()
1901 if (ocfs2_xattr_is_local(loc->xl_entry)) in ocfs2_xa_value_clusters()
1939 struct ocfs2_xattr_entry *entry = loc->xl_entry; in ocfs2_xa_remove_entry()
1942 loc->xl_entry = NULL; in ocfs2_xa_remove_entry()
1992 le16_to_cpu(loc->xl_entry->xe_name_offset)); in ocfs2_xa_cleanup_value_truncate()
1998 what, loc->xl_entry->xe_name_len, nameval_buf, in ocfs2_xa_cleanup_value_truncate()
2006 loc->xl_entry->xe_name_len, nameval_buf, in ocfs2_xa_cleanup_value_truncate()
2014 loc->xl_entry->xe_name_len, nameval_buf, in ocfs2_xa_cleanup_value_truncate()
2024 if (!ocfs2_xattr_is_local(loc->xl_entry)) { in ocfs2_xa_remove()
2051 int name_size = OCFS2_XATTR_SIZE(loc->xl_entry->xe_name_len); in ocfs2_xa_install_value_root()
2055 le16_to_cpu(loc->xl_entry->xe_name_offset)); in ocfs2_xa_install_value_root()
2072 int xe_local = ocfs2_xattr_is_local(loc->xl_entry); in ocfs2_xa_reuse_entry()
2075 BUG_ON(OCFS2_XATTR_SIZE(loc->xl_entry->xe_name_len) != in ocfs2_xa_reuse_entry()
2079 le16_to_cpu(loc->xl_entry->xe_name_offset)); in ocfs2_xa_reuse_entry()
2082 namevalue_size_xe(loc->xl_entry) - name_size); in ocfs2_xa_reuse_entry()
2093 namevalue_size_xe(loc->xl_entry) - in ocfs2_xa_reuse_entry()
2095 } else if (le64_to_cpu(loc->xl_entry->xe_value_size) > in ocfs2_xa_reuse_entry()
2110 loc->xl_entry->xe_value_size = cpu_to_le64(xi->xi_value_len); in ocfs2_xa_reuse_entry()
2111 ocfs2_xattr_set_local(loc->xl_entry, xi_local); in ocfs2_xa_reuse_entry()
2138 if (loc->xl_entry) { in ocfs2_xa_prepare_entry()
2140 orig_value_size = loc->xl_entry->xe_value_size; in ocfs2_xa_prepare_entry()
2147 if (!ocfs2_xattr_is_local(loc->xl_entry)) { in ocfs2_xa_prepare_entry()
2184 if (loc->xl_entry) { in ocfs2_xa_prepare_entry()
2186 loc->xl_entry->xe_value_size = orig_value_size; in ocfs2_xa_prepare_entry()
2206 int nameval_offset = le16_to_cpu(loc->xl_entry->xe_name_offset); in ocfs2_xa_store_value()
2281 loc->xl_entry = entry; in ocfs2_init_dinode_xa_loc()
2302 loc->xl_entry = entry; in ocfs2_init_xattr_block_xa_loc()
2315 loc->xl_entry = entry; in ocfs2_init_xattr_bucket_xa_loc()
2801 xs->here = loc.xl_entry; in ocfs2_xattr_ibody_set()
2987 xs->here = loc.xl_entry; in ocfs2_xattr_block_set()
5551 xs->here = loc.xl_entry; in ocfs2_xattr_set_entry_bucket()
5569 xs->here = loc.xl_entry; in ocfs2_xattr_set_entry_bucket()