Lines Matching defs:xe

227 static int namevalue_size_xe(struct ocfs2_xattr_entry *xe)
229 u64 value_len = le64_to_cpu(xe->xe_value_size);
232 ocfs2_xattr_is_local(xe));
233 return namevalue_size(xe->xe_name_len, value_len);
566 static int ocfs2_xe_entry_usage(struct ocfs2_xattr_entry *xe)
568 return namevalue_size_xe(xe) +
3042 struct ocfs2_xattr_entry *xe = NULL;
3072 xe = xis->here;
3073 name_offset = le16_to_cpu(xe->xe_name_offset);
3074 name_len = OCFS2_XATTR_SIZE(xe->xe_name_len);
3080 xe = xbs->here;
3081 name_offset = le16_to_cpu(xe->xe_name_offset);
3082 name_len = OCFS2_XATTR_SIZE(xe->xe_name_len);
3107 if (!ocfs2_xattr_is_local(xe))
3114 value_size = le64_to_cpu(xe->xe_value_size);
3118 * In xattr set, we always try to set the xe in inode first,
3127 if (!ocfs2_xattr_is_local(xe))
3139 if (!ocfs2_xattr_is_local(xe)) {
3166 if ((ocfs2_xattr_is_local(xe) &&
3168 (!ocfs2_xattr_is_local(xe) &&
3753 struct ocfs2_xattr_entry *xe = NULL;
3761 xe = &xh->xh_entries[i];
3763 if (name_hash > le32_to_cpu(xe->xe_name_hash))
3765 else if (name_hash < le32_to_cpu(xe->xe_name_hash))
3768 cmp = name_index - ocfs2_xattr_get_type(xe);
3770 cmp = name_len - xe->xe_name_len;
3817 struct ocfs2_xattr_entry *xe = NULL;
3851 xe = &xh->xh_entries[0];
3852 if (name_hash < le32_to_cpu(xe->xe_name_hash)) {
3863 xe = &xh->xh_entries[le16_to_cpu(xh->xh_count) - 1];
3868 if (name_hash > le32_to_cpu(xe->xe_name_hash)) {
4185 struct ocfs2_xattr_entry *xe;
4207 xe = &xb_xh->xh_entries[count - 1];
4208 offset = le16_to_cpu(xe->xe_name_offset) + off_change;
4226 /* Change the xe offset for all the xe because of the move. */
4240 * update ocfs2_xattr_search to the new xe and base.
4390 struct ocfs2_xattr_entry *xe;
4433 xe = xh->xh_entries;
4435 for (i = 0; i < le16_to_cpu(xh->xh_count); i++, xe++) {
4436 offset = le16_to_cpu(xe->xe_name_offset);
4437 len = namevalue_size_xe(xe);
4451 xe->xe_name_offset = cpu_to_le16(end - len);
4499 * first_hash will be set as the 1st xe's name_hash in the new extent.
4630 struct ocfs2_xattr_entry *xe;
4686 xe = &xh->xh_entries[start-1];
4698 xh->xh_entries[0].xe_name_hash = xe->xe_name_hash;
4717 xe = &xh->xh_entries[i];
4718 name_value_len += namevalue_size_xe(xe);
4719 if (le16_to_cpu(xe->xe_name_offset) < name_offset)
4720 name_offset = le16_to_cpu(xe->xe_name_offset);
4731 xe = &xh->xh_entries[start];
4734 (int)((char *)xe - (char *)xh),
4736 memmove((char *)xh->xh_entries, (char *)xe, len);
4737 xe = &xh->xh_entries[count - start];
4739 memset((char *)xe, 0, len);
4747 xe = &xh->xh_entries[i];
4748 if (le16_to_cpu(xe->xe_name_offset) <
4750 xh->xh_free_start = xe->xe_name_offset;
5346 * Copy the new updated xe and xe_value_root to new_xe and new_xv if needed.
5356 struct ocfs2_xattr_entry *xe;
5363 xe = &xh->xh_entries[xe_off];
5365 BUG_ON(!xe || ocfs2_xattr_is_local(xe));
5367 offset = le16_to_cpu(xe->xe_name_offset) +
5368 OCFS2_XATTR_SIZE(xe->xe_name_len);
5403 xe->xe_value_size = cpu_to_le64(len);
5654 struct ocfs2_xattr_entry *xe;
5666 xe = &xh->xh_entries[i];
5667 if (ocfs2_xattr_is_local(xe))
5764 struct ocfs2_xattr_entry *xe;
5777 xe = xis->here;
5778 name_offset = le16_to_cpu(xe->xe_name_offset);
5779 name_len = OCFS2_XATTR_SIZE(xe->xe_name_len);
5786 xe = xbs->here;
5787 name_offset = le16_to_cpu(xe->xe_name_offset);
5788 name_len = OCFS2_XATTR_SIZE(xe->xe_name_len);
5820 if (ocfs2_xattr_is_local(xe))
5939 struct ocfs2_xattr_entry *xe;
5945 xe = &header->xh_entries[i];
5947 if (ocfs2_xattr_is_local(xe))
5951 le16_to_cpu(xe->xe_name_offset) +
5952 OCFS2_XATTR_SIZE(xe->xe_name_len));
6002 struct ocfs2_xattr_entry *xe = &xh->xh_entries[offset];
6018 OCFS2_XATTR_SIZE(xe->xe_name_len));
6040 struct ocfs2_xattr_entry *xe;
6059 xe = &xh->xh_entries[i];
6061 if (ocfs2_xattr_is_local(xe))
6174 typedef int (should_xattr_reflinked)(struct ocfs2_xattr_entry *xe);
6191 * Given a xattr header and xe offset,
6218 struct ocfs2_xattr_entry *xe;
6221 xe = &xh->xh_entries[i];
6222 if (ocfs2_xattr_is_local(xe))
6260 struct ocfs2_xattr_entry *xe = &xh->xh_entries[offset];
6263 le16_to_cpu(xe->xe_name_offset) +
6264 OCFS2_XATTR_SIZE(xe->xe_name_len));
6329 * If args.xattr_reflinked is set, call it to decide whether the xe should
6346 struct ocfs2_xattr_entry *xe, *last;
6357 xe = &xh->xh_entries[i];
6359 if (args->xattr_reflinked && !args->xattr_reflinked(xe)) {
6360 xe = &new_xh->xh_entries[j];
6364 memmove(xe, xe + 1,
6365 (void *)last - (void *)xe);
6378 if (ocfs2_xattr_is_local(xe))
7115 static int ocfs2_reflink_xattr_no_security(struct ocfs2_xattr_entry *xe)
7117 int type = ocfs2_xattr_get_type(xe);