>> +s32 tiler_mmap_blk(struct tiler_block_t *blk, u32 offs, u32 size,
>> +                             struct vm_area_struct *vma, u32 voffs)
>> +{
>> +     u32 v, p, len;
>> +
>> +     /* don't allow mremap */
>> +     vma->vm_flags |= VM_DONTEXPAND | VM_RESERVED;
> Should we add " VM_LOCKED" as well considering the page swapping  ?

-- VM_RESERVED serves this purpose right ?

>> +
>> +     /* mapping must fit into vma */
>> +     BUG_ON(vma->vm_start > vma->vm_start + voffs ||
>> +             vma->vm_start + voffs > vma->vm_start + voffs + size ||
>> +             vma->vm_start + voffs + size > vma->vm_end);

Hari
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to