• 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:xh

252 					     struct ocfs2_xattr_header *xh,
945 struct ocfs2_xattr_header *xh;
948 xh = (struct ocfs2_xattr_header *)
952 for (i = 0; i < le16_to_cpu(xh->xh_count); i++)
953 if (!ocfs2_xattr_is_local(&xh->xh_entries[i]))
1563 struct ocfs2_xattr_header *xh = loc->xl_header;
1564 int i, count = le16_to_cpu(xh->xh_count);
1568 offset = le16_to_cpu(xh->xh_entries[i].xe_name_offset);
1609 struct ocfs2_xattr_header *xh = loc->xl_header;
1610 int count = le16_to_cpu(xh->xh_count);
1617 memmove((char *)xh + first_namevalue_offset + namevalue_size,
1618 (char *)xh + first_namevalue_offset,
1620 memset((char *)xh + first_namevalue_offset, 0, namevalue_size);
1622 /* Now tell xh->xh_entries about it */
1624 offset = le16_to_cpu(xh->xh_entries[i].xe_name_offset);
1626 le16_add_cpu(&xh->xh_entries[i].xe_name_offset,
1791 struct ocfs2_xattr_header *xh = loc->xl_header;
1792 int count = le16_to_cpu(xh->xh_count);
1802 tmp_xe = &xh->xh_entries[tmp];
1815 memmove(&xh->xh_entries[low + 1],
1816 &xh->xh_entries[low],
1819 le16_add_cpu(&xh->xh_count, 1);
1820 loc->xl_entry = &xh->xh_entries[low];
1827 struct ocfs2_xattr_header *xh = loc->xl_header;
1834 xh->xh_free_start = cpu_to_le16(nameval_offset);
1835 le16_add_cpu(&xh->xh_name_value_len, size);
1913 struct ocfs2_xattr_header *xh = loc->xl_header;
1919 le16_add_cpu(&xh->xh_count, -1);
1920 count = le16_to_cpu(xh->xh_count);
1928 index = ((char *)entry - (char *)&xh->xh_entries) /
1930 memmove(&xh->xh_entries[index], &xh->xh_entries[index + 1],
1932 memset(&xh->xh_entries[count], 0,
3729 struct ocfs2_xattr_header *xh = bucket_xh(bucket);
3738 for (i = 0; i < le16_to_cpu(xh->xh_count); i++) {
3739 xe = &xh->xh_entries[i];
3753 xh,
3794 struct ocfs2_xattr_header *xh = NULL;
3816 xh = bucket_xh(search);
3817 high_bucket = le16_to_cpu(xh->xh_num_buckets) - 1;
3829 xh = bucket_xh(search);
3830 xe = &xh->xh_entries[0];
3841 if (xh->xh_count)
3842 xe = &xh->xh_entries[le16_to_cpu(xh->xh_count) - 1];
3997 struct ocfs2_xattr_header *xh,
4004 if (index < 0 || index >= le16_to_cpu(xh->xh_count))
4007 name_offset = le16_to_cpu(xh->xh_entries[index].xe_name_offset);
4167 struct ocfs2_xattr_header *xh = bucket_xh(bucket);
4193 xh->xh_count = xb_xh->xh_count;
4194 xh->xh_num_buckets = cpu_to_le16(1);
4195 xh->xh_name_value_len = cpu_to_le16(size);
4196 xh->xh_free_start = cpu_to_le16(OCFS2_XATTR_BUCKET_SIZE - size);
4208 le16_add_cpu(&xh->xh_entries[i].xe_name_offset, off_change);
4360 struct ocfs2_xattr_header *xh;
4390 xh = (struct ocfs2_xattr_header *)bucket_buf;
4391 entries = (char *)xh->xh_entries;
4392 xh_free_start = le16_to_cpu(xh->xh_free_start);
4396 (unsigned long long)blkno, le16_to_cpu(xh->xh_count),
4397 xh_free_start, le16_to_cpu(xh->xh_name_value_len));
4404 sort(entries, le16_to_cpu(xh->xh_count),
4409 xe = xh->xh_entries;
4411 for (i = 0; i < le16_to_cpu(xh->xh_count); i++, xe++) {
4443 xh->xh_free_start = cpu_to_le16(end);
4446 sort(entries, le16_to_cpu(xh->xh_count),
4552 static int ocfs2_xattr_find_divide_pos(struct ocfs2_xattr_header *xh)
4554 struct ocfs2_xattr_entry *entries = xh->xh_entries;
4555 int count = le16_to_cpu(xh->xh_count);
4604 struct ocfs2_xattr_header *xh;
4656 xh = bucket_xh(s_bucket);
4657 count = le16_to_cpu(xh->xh_count);
4658 start = ocfs2_xattr_find_divide_pos(xh);
4661 xe = &xh->xh_entries[start-1];
4671 xh = bucket_xh(t_bucket);
4672 xh->xh_free_start = cpu_to_le16(blocksize);
4673 xh->xh_entries[0].xe_name_hash = xe->xe_name_hash;
4674 le32_add_cpu(&xh->xh_entries[0].xe_name_hash, 1);
4683 xh = bucket_xh(t_bucket);
4692 xe = &xh->xh_entries[i];
4706 xe = &xh->xh_entries[start];
4709 (int)((char *)xe - (char *)xh),
4710 (int)((char *)xh->xh_entries - (char *)xh));
4711 memmove((char *)xh->xh_entries, (char *)xe, len);
4712 xe = &xh->xh_entries[count - start];
4716 le16_add_cpu(&xh->xh_count, -start);
4717 le16_add_cpu(&xh->xh_name_value_len, -name_value_len);
4720 xh->xh_free_start = cpu_to_le16(OCFS2_XATTR_BUCKET_SIZE);
4721 for (i = 0; i < le16_to_cpu(xh->xh_count); i++) {
4722 xe = &xh->xh_entries[i];
4724 le16_to_cpu(xh->xh_free_start))
4725 xh->xh_free_start = xe->xe_name_offset;
4729 /* set xh->xh_num_buckets for the new xh. */
4731 xh->xh_num_buckets = cpu_to_le16(1);
4733 xh->xh_num_buckets = 0;
4739 *first_hash = le32_to_cpu(xh->xh_entries[0].xe_name_hash);
4749 xh = bucket_xh(s_bucket);
4750 memset(&xh->xh_entries[start], 0,
4752 xh->xh_count = cpu_to_le16(start);
4753 xh->xh_free_start = cpu_to_le16(name_offset);
4754 xh->xh_name_value_len = cpu_to_le16(name_value_len);
5345 struct ocfs2_xattr_header *xh = bucket_xh(bucket);
5351 xe = &xh->xh_entries[xe_off];
5502 struct ocfs2_xattr_header *xh = bucket_xh(bucket);
5505 if (name_hash != le32_to_cpu(xh->xh_entries[0].xe_name_hash))
5508 if (xh->xh_entries[le16_to_cpu(xh->xh_count) - 1].xe_name_hash ==
5509 xh->xh_entries[0].xe_name_hash) {
5513 le32_to_cpu(xh->xh_entries[0].xe_name_hash));
5640 struct ocfs2_xattr_header *xh = bucket_xh(bucket);
5653 for (i = 0; i < le16_to_cpu(xh->xh_count); i++) {
5654 xe = &xh->xh_entries[i];
5981 struct ocfs2_xattr_header *xh = bucket_xh(bucket);
5982 struct ocfs2_xattr_entry *xe = &xh->xh_entries[offset];
6018 struct ocfs2_xattr_header *xh =
6037 le16_to_cpu(xh->xh_count));
6038 for (i = 0; i < le16_to_cpu(xh->xh_count); i++) {
6039 xe = &xh->xh_entries[i];
6177 struct ocfs2_xattr_header *xh,
6190 struct ocfs2_xattr_header *xh,
6200 for (i = 0; i < le16_to_cpu(xh->xh_count); i++) {
6201 xe = &xh->xh_entries[i];
6205 ret = func(sb, bh, xh, i, &xv, NULL, para);
6235 struct ocfs2_xattr_header *xh,
6241 struct ocfs2_xattr_entry *xe = &xh->xh_entries[offset];
6243 *xv = (struct ocfs2_xattr_value_root *)((void *)xh +
6258 struct ocfs2_xattr_header *xh,
6269 ret = ocfs2_value_metas_in_xattr_header(osb->sb, NULL, xh,
6316 struct ocfs2_xattr_header *xh,
6334 (unsigned long long)old_bh->b_blocknr, le16_to_cpu(xh->xh_count));
6337 for (i = 0, j = 0; i < le16_to_cpu(xh->xh_count); i++, j++) {
6338 xe = &xh->xh_entries[i];
6362 ret = func(sb, old_bh, xh, i, &xv, NULL, para);
6376 * recs have already be copied to the new xh with the
6447 struct ocfs2_xattr_header *xh = (struct ocfs2_xattr_header *)
6459 ret = ocfs2_reflink_lock_xattr_allocators(osb, xh, args->ref_root_bh,
6486 ret = ocfs2_reflink_xattr_header(handle, args, args->old_bh, xh,
6559 struct ocfs2_xattr_header *xh = &xb->xb_attrs.xb_header;
6569 ret = ocfs2_reflink_lock_xattr_allocators(osb, xh, args->ref_root_bh,
6605 ret = ocfs2_reflink_xattr_header(handle, args, blk_bh, xh,
6649 struct ocfs2_xattr_header *xh,
6676 struct ocfs2_xattr_header *xh,
6695 struct ocfs2_xattr_header *xh =
6701 xh, &metas->num_metas,