Lines Matching refs:data
106 end_vcn = sle64_to_cpu(a->data.non_resident.highest_vcn);
111 if (!a->data.non_resident.lowest_vcn && end_vcn <= 0)
124 sle64_to_cpu(a->data.non_resident.lowest_vcn)
168 end_vcn = sle64_to_cpu(a->data.non_resident.highest_vcn) + 1;
679 a->data.resident.value_offset),
681 a->data.resident.value_length)));
690 a->data.resident.value_length);
1082 a->data.resident.value_length) == val_len &&
1084 le16_to_cpu(a->data.resident.value_offset),
1442 * Warning: If you make a record smaller without having copied all the data you
1443 * are interested in the data may be overwritten.
1486 * Warning: If you make a record smaller without having copied all the data you
1487 * are interested in the data may be overwritten.
1496 le16_to_cpu(a->data.resident.value_offset) + new_size))
1502 old_size = le32_to_cpu(a->data.resident.value_length);
1504 memset((u8*)a + le16_to_cpu(a->data.resident.value_offset) +
1507 a->data.resident.value_length = cpu_to_le32(new_size);
1514 * @data_size: size of the resident data to copy to the non-resident attribute
1650 data.non_resident.compressed_size) +
1651 sizeof(a->data.non_resident.compressed_size) +
1655 data.non_resident.compressed_size) + 7) & ~7;
1666 attr_size = le32_to_cpu(a->data.resident.value_length);
1671 le16_to_cpu(a->data.resident.value_offset),
1679 old_res_attr_flags = a->data.resident.flags;
1695 a->data.non_resident.lowest_vcn = 0;
1696 a->data.non_resident.highest_vcn = cpu_to_sle64((new_size - 1) >>
1698 a->data.non_resident.mapping_pairs_offset = cpu_to_le16(mp_ofs);
1699 memset(&a->data.non_resident.reserved, 0,
1700 sizeof(a->data.non_resident.reserved));
1701 a->data.non_resident.allocated_size = cpu_to_sle64(new_size);
1702 a->data.non_resident.data_size =
1703 a->data.non_resident.initialized_size =
1706 a->data.non_resident.compression_unit = 0;
1708 a->data.non_resident.compression_unit = 4;
1709 a->data.non_resident.compressed_size =
1710 a->data.non_resident.allocated_size;
1712 a->data.non_resident.compression_unit = 0;
1727 if (a->data.non_resident.compression_unit) {
1728 ni->itype.compressed.block_size = 1U << (a->data.
1735 a->data.non_resident.compression_unit;
1769 name_ofs = (offsetof(ATTR_RECORD, data.resident.reserved) +
1770 sizeof(a->data.resident.reserved) + 7) & ~7;
1811 a->data.resident.value_length = cpu_to_le32(attr_size);
1812 a->data.resident.value_offset = cpu_to_le16(mp_ofs);
1813 a->data.resident.flags = old_res_attr_flags;
1814 memset(&a->data.resident.reserved, 0,
1815 sizeof(a->data.resident.reserved));
1816 /* Copy the data from the page back to the attribute value. */
1859 * @new_data_size: new size in bytes to which to extend the data to
1870 * If @new_data_size is -1, it is ignored. If it is >= 0, then the data size
1872 * vfs inode is not updated. Only the data size in the base attribute record
1874 * WARNING: It is a BUG() for @new_data_size to be smaller than the old data
1882 * For non-resident attributes this involves allocating clusters in the data
2027 * abort if we need to update the data size.
2036 * data size.
2054 attr_len = le32_to_cpu(a->data.resident.value_length);
2062 le16_to_cpu(a->data.resident.value_offset) +
2067 le16_to_cpu(a->data.resident.value_offset);
2071 a->data.resident.value_length =
2167 * If the data starts after the end of the old allocation, this is a
2170 * allocated size and the start of the data. Otherwise simply proceed
2270 ll = sle64_to_cpu(a->data.non_resident.lowest_vcn);
2293 le16_to_cpu(a->data.non_resident.mapping_pairs_offset));
2313 le16_to_cpu(a->data.non_resident.mapping_pairs_offset),
2326 a->data.non_resident.highest_vcn = cpu_to_sle64((new_alloc_size >>
2332 if (a->data.non_resident.lowest_vcn) {
2349 a->data.non_resident.allocated_size = cpu_to_sle64(new_alloc_size);
2362 a->data.non_resident.compressed_size =
2371 sle64_to_cpu(a->data.non_resident.data_size));
2372 a->data.non_resident.data_size = cpu_to_sle64(new_data_size);
2425 ctx->attr->data.non_resident.highest_vcn = cpu_to_sle64(
2457 a->data.non_resident.
2459 le16_to_cpu(a->data.non_resident.