Re: [PATCH 2/2 v4][rfc] tmpfs: interleave the starting node of /dev/shmem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 02 Jul 2012 at 20:28 GMT, Nathan Zimmer <nzimmer@xxxxxxx> wrote:
> +static unsigned long shmem_interleave( struct vm_area_struct *vma, unsigned long addr)
> +{
> +	unsigned offset;
> +

Here, 'offset' should be 'unsigned long', 'unsigned' means 'unsigned
int'.


> +	// Use the vm_files prefered node as the initial offset
> +	offset = (unsigned long)vma->vm_private_data;
> +
> +	offset += ((addr - vma->vm_start) >> PAGE_SHIFT) + vma->vm_pgoff;
> +
> +	return offset;
> +}


Thanks.

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]