Lines Matching refs:new_size
1431 * @new_size: new size in bytes to which to resize the attribute record @a
1434 * the mft record @m to @new_size bytes.
1445 int ntfs_attr_record_resize(MFT_RECORD *m, ATTR_RECORD *a, u32 new_size)
1447 ntfs_debug("Entering for new_size %u.", new_size);
1449 if (new_size & 7)
1450 new_size = (new_size + 7) & ~7;
1452 if (new_size != le32_to_cpu(a->length)) {
1454 le32_to_cpu(a->length) + new_size;
1459 memmove((u8*)a + new_size, (u8*)a + le32_to_cpu(a->length),
1465 if (new_size >= offsetof(ATTR_REC, length) + sizeof(a->length))
1466 a->length = cpu_to_le32(new_size);
1475 * @new_size: new size in bytes to which to resize the attribute value of @a
1477 * Resize the value of the attribute @a in the mft record @m to @new_size bytes.
1490 const u32 new_size)
1496 le16_to_cpu(a->data.resident.value_offset) + new_size))
1500 * the area between the old size and @new_size.
1503 if (new_size > old_size)
1505 old_size, 0, new_size - old_size);
1507 a->data.resident.value_length = cpu_to_le32(new_size);
1547 s64 new_size;
1583 new_size = (data_size + vol->cluster_size - 1) &
1585 if (new_size > 0) {
1595 rl = ntfs_cluster_alloc(vol, 0, new_size >>
1600 "%i.", (new_size >>
1696 a->data.non_resident.highest_vcn = cpu_to_sle64((new_size - 1) >>
1701 a->data.non_resident.allocated_size = cpu_to_sle64(new_size);
1724 ni->allocated_size = new_size;
1947 * For non-resident attributes, @start and @new_size need to be aligned