Lines Matching defs:xl_entry
164 /* Fill xl_entry with a new entry */
197 struct ocfs2_xattr_entry *xl_entry;
1473 /* Can we reuse loc->xl_entry for xi? */
1490 loc->xl_entry->xe_name_hash = cpu_to_le32(name_hash);
1496 loc->xl_entry->xe_name_offset = cpu_to_le16(loc->xl_size);
1507 loc->xl_entry->xe_value_size = cpu_to_le64(xi->xi_value_len);
1508 loc->xl_entry->xe_name_len = xi->xi_name_len;
1509 ocfs2_xattr_set_type(loc->xl_entry, xi->xi_name_index);
1510 ocfs2_xattr_set_local(loc->xl_entry,
1513 nameval_offset = le16_to_cpu(loc->xl_entry->xe_name_offset);
1522 int nameval_offset = le16_to_cpu(loc->xl_entry->xe_name_offset);
1523 int name_size = OCFS2_XATTR_SIZE(loc->xl_entry->xe_name_len);
1526 BUG_ON(ocfs2_xattr_is_local(loc->xl_entry));
1527 BUG_ON(namevalue_size_xe(loc->xl_entry) !=
1573 return namevalue_size_xe(loc->xl_entry) ==
1604 if (loc->xl_entry) {
1609 needed_space -= ocfs2_xe_entry_usage(loc->xl_entry);
1624 struct ocfs2_xattr_entry *entry = loc->xl_entry;
1655 loc->xl_entry = &(loc->xl_header->xh_entries[count]);
1657 memset(loc->xl_entry, 0, sizeof(struct ocfs2_xattr_entry));
1664 loc->xl_entry->xe_name_offset = cpu_to_le16(free_start - size);
1730 return namevalue_size_xe(loc->xl_entry) >=
1770 if (loc->xl_entry) {
1802 -namevalue_size_xe(loc->xl_entry));
1836 loc->xl_entry = &xh->xh_entries[low];
1837 memset(loc->xl_entry, 0, sizeof(struct ocfs2_xattr_entry));
1849 loc->xl_entry->xe_name_offset = cpu_to_le16(nameval_offset);
1860 int nameval_offset = le16_to_cpu(loc->xl_entry->xe_name_offset);
1861 int size = namevalue_size_xe(loc->xl_entry);
1892 if (ocfs2_xattr_is_local(loc->xl_entry))
1930 struct ocfs2_xattr_entry *entry = loc->xl_entry;
1933 loc->xl_entry = NULL;
1983 le16_to_cpu(loc->xl_entry->xe_name_offset));
1989 what, loc->xl_entry->xe_name_len, nameval_buf,
1997 loc->xl_entry->xe_name_len, nameval_buf,
2005 loc->xl_entry->xe_name_len, nameval_buf,
2015 if (!ocfs2_xattr_is_local(loc->xl_entry)) {
2043 int name_size = OCFS2_XATTR_SIZE(loc->xl_entry->xe_name_len);
2047 le16_to_cpu(loc->xl_entry->xe_name_offset));
2064 int xe_local = ocfs2_xattr_is_local(loc->xl_entry);
2067 BUG_ON(OCFS2_XATTR_SIZE(loc->xl_entry->xe_name_len) !=
2071 le16_to_cpu(loc->xl_entry->xe_name_offset));
2074 namevalue_size_xe(loc->xl_entry) - name_size);
2085 namevalue_size_xe(loc->xl_entry) -
2087 } else if (le64_to_cpu(loc->xl_entry->xe_value_size) >
2102 loc->xl_entry->xe_value_size = cpu_to_le64(xi->xi_value_len);
2103 ocfs2_xattr_set_local(loc->xl_entry, xi_local);
2110 * Prepares loc->xl_entry to receive the new xattr. This includes
2111 * properly setting up the name+value pair region. If loc->xl_entry
2130 if (loc->xl_entry) {
2132 orig_value_size = loc->xl_entry->xe_value_size;
2139 if (!ocfs2_xattr_is_local(loc->xl_entry)) {
2176 if (loc->xl_entry) {
2178 loc->xl_entry->xe_value_size = orig_value_size;
2198 int nameval_offset = le16_to_cpu(loc->xl_entry->xe_name_offset);
2237 /* Don't worry, we are never called with !xi_value and !xl_entry */
2273 loc->xl_entry = entry;
2294 loc->xl_entry = entry;
2307 loc->xl_entry = entry;
2793 xs->here = loc.xl_entry;
2979 xs->here = loc.xl_entry;
5552 xs->here = loc.xl_entry;
5570 xs->here = loc.xl_entry;