Lines Matching defs:new_size
4793 * @new_size: new size in bytes to which to resize the attribute record @a
4796 * the mft record @m to @new_size bytes.
4806 int ntfs_attr_record_resize(MFT_RECORD *m, ATTR_RECORD *a, u32 new_size)
4816 (unsigned)attr_size, (unsigned)new_size);
4819 new_size = (new_size + 7) & ~7;
4822 if (new_size != attr_size) {
4824 u32 new_muse = old_size - attr_size + new_size;
4834 if (a->type == AT_INDEX_ROOT && new_size > attr_size &&
4850 memmove((u8 *)a + new_size, (u8 *)a + attr_size,
4857 if (new_size >= offsetof(ATTR_REC, length) + sizeof(a->length))
4858 a->length = cpu_to_le32(new_size);
4867 * @new_size: new size in bytes to which to resize the attribute value of @a
4869 * Resize the value of the attribute @a in the mft record @m to @new_size bytes.
4878 const u32 new_size)
4882 ntfs_log_trace("Entering for new size %u.\n", (unsigned)new_size);
4893 new_size + 7) & ~7)) < 0)
4897 * old size and @new_size.
4899 if (new_size > le32_to_cpu(a->value_length))
4901 le32_to_cpu(a->value_length), 0, new_size -
4904 a->value_length = cpu_to_le32(new_size);