Lines Matching refs:new_size
1421 int ntfs_attr_record_resize(MFT_RECORD *m, ATTR_RECORD *a, u32 new_size) in ntfs_attr_record_resize() argument
1423 ntfs_debug("Entering for new_size %u.", new_size); in ntfs_attr_record_resize()
1425 if (new_size & 7) in ntfs_attr_record_resize()
1426 new_size = (new_size + 7) & ~7; in ntfs_attr_record_resize()
1428 if (new_size != le32_to_cpu(a->length)) { in ntfs_attr_record_resize()
1430 le32_to_cpu(a->length) + new_size; in ntfs_attr_record_resize()
1435 memmove((u8*)a + new_size, (u8*)a + le32_to_cpu(a->length), in ntfs_attr_record_resize()
1441 if (new_size >= offsetof(ATTR_REC, length) + sizeof(a->length)) in ntfs_attr_record_resize()
1442 a->length = cpu_to_le32(new_size); in ntfs_attr_record_resize()
1466 const u32 new_size) in ntfs_resident_attr_value_resize() argument
1472 le16_to_cpu(a->data.resident.value_offset) + new_size)) in ntfs_resident_attr_value_resize()
1479 if (new_size > old_size) in ntfs_resident_attr_value_resize()
1481 old_size, 0, new_size - old_size); in ntfs_resident_attr_value_resize()
1483 a->data.resident.value_length = cpu_to_le32(new_size); in ntfs_resident_attr_value_resize()
1523 s64 new_size; in ntfs_attr_make_non_resident() local
1559 new_size = (data_size + vol->cluster_size - 1) & in ntfs_attr_make_non_resident()
1561 if (new_size > 0) { in ntfs_attr_make_non_resident()
1571 rl = ntfs_cluster_alloc(vol, 0, new_size >> in ntfs_attr_make_non_resident()
1576 "%i.", (new_size >> in ntfs_attr_make_non_resident()
1672 a->data.non_resident.highest_vcn = cpu_to_sle64((new_size - 1) >> in ntfs_attr_make_non_resident()
1677 a->data.non_resident.allocated_size = cpu_to_sle64(new_size); in ntfs_attr_make_non_resident()
1700 ni->allocated_size = new_size; in ntfs_attr_make_non_resident()