Lines Matching defs:xl_entry
170 /* Fill xl_entry with a new entry */
203 struct ocfs2_xattr_entry *xl_entry;
1479 /* Can we reuse loc->xl_entry for xi? */
1496 loc->xl_entry->xe_name_hash = cpu_to_le32(name_hash);
1502 loc->xl_entry->xe_name_offset = cpu_to_le16(loc->xl_size);
1513 loc->xl_entry->xe_value_size = cpu_to_le64(xi->xi_value_len);
1514 loc->xl_entry->xe_name_len = xi->xi_name_len;
1515 ocfs2_xattr_set_type(loc->xl_entry, xi->xi_name_index);
1516 ocfs2_xattr_set_local(loc->xl_entry,
1519 nameval_offset = le16_to_cpu(loc->xl_entry->xe_name_offset);
1528 int nameval_offset = le16_to_cpu(loc->xl_entry->xe_name_offset);
1529 int name_size = OCFS2_XATTR_SIZE(loc->xl_entry->xe_name_len);
1532 BUG_ON(ocfs2_xattr_is_local(loc->xl_entry));
1533 BUG_ON(namevalue_size_xe(loc->xl_entry) !=
1579 return namevalue_size_xe(loc->xl_entry) ==
1610 if (loc->xl_entry) {
1615 needed_space -= ocfs2_xe_entry_usage(loc->xl_entry);
1630 struct ocfs2_xattr_entry *entry = loc->xl_entry;
1661 loc->xl_entry = &(loc->xl_header->xh_entries[count]);
1663 memset(loc->xl_entry, 0, sizeof(struct ocfs2_xattr_entry));
1670 loc->xl_entry->xe_name_offset = cpu_to_le16(free_start - size);
1736 return namevalue_size_xe(loc->xl_entry) >=
1776 if (loc->xl_entry) {
1808 -namevalue_size_xe(loc->xl_entry));
1842 loc->xl_entry = &xh->xh_entries[low];
1843 memset(loc->xl_entry, 0, sizeof(struct ocfs2_xattr_entry));
1855 loc->xl_entry->xe_name_offset = cpu_to_le16(nameval_offset);
1866 int nameval_offset = le16_to_cpu(loc->xl_entry->xe_name_offset);
1867 int size = namevalue_size_xe(loc->xl_entry);
1898 if (ocfs2_xattr_is_local(loc->xl_entry))
1936 struct ocfs2_xattr_entry *entry = loc->xl_entry;
1939 loc->xl_entry = NULL;
1989 le16_to_cpu(loc->xl_entry->xe_name_offset));
1995 what, loc->xl_entry->xe_name_len, nameval_buf,
2003 loc->xl_entry->xe_name_len, nameval_buf,
2011 loc->xl_entry->xe_name_len, nameval_buf,
2021 if (!ocfs2_xattr_is_local(loc->xl_entry)) {
2049 int name_size = OCFS2_XATTR_SIZE(loc->xl_entry->xe_name_len);
2053 le16_to_cpu(loc->xl_entry->xe_name_offset));
2070 int xe_local = ocfs2_xattr_is_local(loc->xl_entry);
2073 BUG_ON(OCFS2_XATTR_SIZE(loc->xl_entry->xe_name_len) !=
2077 le16_to_cpu(loc->xl_entry->xe_name_offset));
2080 namevalue_size_xe(loc->xl_entry) - name_size);
2091 namevalue_size_xe(loc->xl_entry) -
2093 } else if (le64_to_cpu(loc->xl_entry->xe_value_size) >
2108 loc->xl_entry->xe_value_size = cpu_to_le64(xi->xi_value_len);
2109 ocfs2_xattr_set_local(loc->xl_entry, xi_local);
2116 * Prepares loc->xl_entry to receive the new xattr. This includes
2117 * properly setting up the name+value pair region. If loc->xl_entry
2136 if (loc->xl_entry) {
2138 orig_value_size = loc->xl_entry->xe_value_size;
2145 if (!ocfs2_xattr_is_local(loc->xl_entry)) {
2182 if (loc->xl_entry) {
2184 loc->xl_entry->xe_value_size = orig_value_size;
2204 int nameval_offset = le16_to_cpu(loc->xl_entry->xe_name_offset);
2243 /* Don't worry, we are never called with !xi_value and !xl_entry */
2279 loc->xl_entry = entry;
2300 loc->xl_entry = entry;
2313 loc->xl_entry = entry;
2799 xs->here = loc.xl_entry;
2985 xs->here = loc.xl_entry;
5558 xs->here = loc.xl_entry;
5576 xs->here = loc.xl_entry;