Lines Matching refs:new_size
3324 * @new_size: new size in bytes to which to resize the attribute record @a
3327 * the mft record @m to @new_size bytes.
3337 int ntfs_attr_record_resize(MFT_RECORD *m, ATTR_RECORD *a, u32 new_size)
3339 ntfs_log_trace("Entering for new_size %u.\n", (unsigned) new_size);
3341 new_size = (new_size + 7) & ~7;
3343 if (new_size != le32_to_cpu(a->length)) {
3345 le32_to_cpu(a->length) + new_size;
3352 memmove((u8*)a + new_size, (u8*)a + le32_to_cpu(a->length),
3358 if (new_size >= offsetof(ATTR_REC, length) + sizeof(a->length))
3359 a->length = cpu_to_le32(new_size);
3368 * @new_size: new size in bytes to which to resize the attribute value of @a
3370 * Resize the value of the attribute @a in the mft record @m to @new_size bytes.
3379 const u32 new_size)
3381 ntfs_log_trace("Entering for new size %u.\n", (unsigned)new_size);
3396 new_size + 7) & ~7) < 0) {
3407 * old size and @new_size.
3409 if (new_size > le32_to_cpu(a->u.res.value_length))
3411 le32_to_cpu(a->u.res.value_length), 0, new_size -
3414 a->u.res.value_length = cpu_to_le32(new_size);