• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/ocfs2/

Lines Matching defs:xe

241 static int namevalue_size_xe(struct ocfs2_xattr_entry *xe)
243 u64 value_len = le64_to_cpu(xe->xe_value_size);
246 ocfs2_xattr_is_local(xe));
247 return namevalue_size(xe->xe_name_len, value_len);
581 static int ocfs2_xe_entry_usage(struct ocfs2_xattr_entry *xe)
583 return namevalue_size_xe(xe) +
3025 struct ocfs2_xattr_entry *xe = NULL;
3056 xe = xis->here;
3057 name_offset = le16_to_cpu(xe->xe_name_offset);
3058 name_len = OCFS2_XATTR_SIZE(xe->xe_name_len);
3064 xe = xbs->here;
3065 name_offset = le16_to_cpu(xe->xe_name_offset);
3066 name_len = OCFS2_XATTR_SIZE(xe->xe_name_len);
3091 if (!ocfs2_xattr_is_local(xe))
3098 value_size = le64_to_cpu(xe->xe_value_size);
3102 * In xattr set, we always try to set the xe in inode first,
3111 if (!ocfs2_xattr_is_local(xe))
3124 if (!ocfs2_xattr_is_local(xe)) {
3153 if ((ocfs2_xattr_is_local(xe) &&
3155 (!ocfs2_xattr_is_local(xe) &&
3731 struct ocfs2_xattr_entry *xe = NULL;
3739 xe = &xh->xh_entries[i];
3741 if (name_hash > le32_to_cpu(xe->xe_name_hash))
3743 else if (name_hash < le32_to_cpu(xe->xe_name_hash))
3746 cmp = name_index - ocfs2_xattr_get_type(xe);
3748 cmp = name_len - xe->xe_name_len;
3795 struct ocfs2_xattr_entry *xe = NULL;
3830 xe = &xh->xh_entries[0];
3831 if (name_hash < le32_to_cpu(xe->xe_name_hash)) {
3842 xe = &xh->xh_entries[le16_to_cpu(xh->xh_count) - 1];
3844 last_hash = le32_to_cpu(xe->xe_name_hash);
3849 if (name_hash > le32_to_cpu(xe->xe_name_hash)) {
4163 struct ocfs2_xattr_entry *xe;
4185 xe = &xb_xh->xh_entries[count - 1];
4186 offset = le16_to_cpu(xe->xe_name_offset) + off_change;
4204 /* Change the xe offset for all the xe because of the move. */
4219 * update ocfs2_xattr_search to the new xe and base.
4365 struct ocfs2_xattr_entry *xe;
4409 xe = xh->xh_entries;
4411 for (i = 0; i < le16_to_cpu(xh->xh_count); i++, xe++) {
4412 offset = le16_to_cpu(xe->xe_name_offset);
4413 len = namevalue_size_xe(xe);
4427 xe->xe_name_offset = cpu_to_le16(end - len);
4475 * first_hash will be set as the 1st xe's name_hash in the new extent.
4605 struct ocfs2_xattr_entry *xe;
4661 xe = &xh->xh_entries[start-1];
4673 xh->xh_entries[0].xe_name_hash = xe->xe_name_hash;
4692 xe = &xh->xh_entries[i];
4693 name_value_len += namevalue_size_xe(xe);
4694 if (le16_to_cpu(xe->xe_name_offset) < name_offset)
4695 name_offset = le16_to_cpu(xe->xe_name_offset);
4706 xe = &xh->xh_entries[start];
4709 (int)((char *)xe - (char *)xh),
4711 memmove((char *)xh->xh_entries, (char *)xe, len);
4712 xe = &xh->xh_entries[count - start];
4714 memset((char *)xe, 0, len);
4722 xe = &xh->xh_entries[i];
4723 if (le16_to_cpu(xe->xe_name_offset) <
4725 xh->xh_free_start = xe->xe_name_offset;
5334 * Copy the new updated xe and xe_value_root to new_xe and new_xv if needed.
5344 struct ocfs2_xattr_entry *xe;
5351 xe = &xh->xh_entries[xe_off];
5353 BUG_ON(!xe || ocfs2_xattr_is_local(xe));
5355 offset = le16_to_cpu(xe->xe_name_offset) +
5356 OCFS2_XATTR_SIZE(xe->xe_name_len);
5391 xe->xe_value_size = cpu_to_le64(len);
5642 struct ocfs2_xattr_entry *xe;
5654 xe = &xh->xh_entries[i];
5655 if (ocfs2_xattr_is_local(xe))
5748 struct ocfs2_xattr_entry *xe;
5761 xe = xis->here;
5762 name_offset = le16_to_cpu(xe->xe_name_offset);
5763 name_len = OCFS2_XATTR_SIZE(xe->xe_name_len);
5770 xe = xbs->here;
5771 name_offset = le16_to_cpu(xe->xe_name_offset);
5772 name_len = OCFS2_XATTR_SIZE(xe->xe_name_len);
5804 if (ocfs2_xattr_is_local(xe))
5919 struct ocfs2_xattr_entry *xe;
5925 xe = &header->xh_entries[i];
5927 if (ocfs2_xattr_is_local(xe))
5931 le16_to_cpu(xe->xe_name_offset) +
5932 OCFS2_XATTR_SIZE(xe->xe_name_len));
5982 struct ocfs2_xattr_entry *xe = &xh->xh_entries[offset];
5998 OCFS2_XATTR_SIZE(xe->xe_name_len));
6020 struct ocfs2_xattr_entry *xe;
6039 xe = &xh->xh_entries[i];
6041 if (ocfs2_xattr_is_local(xe))
6154 typedef int (should_xattr_reflinked)(struct ocfs2_xattr_entry *xe);
6171 * Given a xattr header and xe offset,
6198 struct ocfs2_xattr_entry *xe;
6201 xe = &xh->xh_entries[i];
6202 if (ocfs2_xattr_is_local(xe))
6241 struct ocfs2_xattr_entry *xe = &xh->xh_entries[offset];
6244 le16_to_cpu(xe->xe_name_offset) +
6245 OCFS2_XATTR_SIZE(xe->xe_name_len));
6310 * If args.xattr_reflinked is set, call it to decide whether the xe should
6327 struct ocfs2_xattr_entry *xe, *last;
6338 xe = &xh->xh_entries[i];
6340 if (args->xattr_reflinked && !args->xattr_reflinked(xe)) {
6341 xe = &new_xh->xh_entries[j];
6345 memmove(xe, xe + 1,
6346 (void *)last - (void *)xe);
6359 if (ocfs2_xattr_is_local(xe))
7087 static int ocfs2_reflink_xattr_no_security(struct ocfs2_xattr_entry *xe)
7089 int type = ocfs2_xattr_get_type(xe);