Thread (9 messages) 9 messages, 5 authors, 2012-07-25

Re: [PATCH 2/2 v5][resend] tmpfs: interleave the starting node of /dev/shmem

From: Cong Wang <hidden>
Date: 2012-07-11 05:51:04

On Mon, 09 Jul 2012 at 14:46 GMT, Nathan Zimmer [off-list ref] wrote:
+static unsigned long shmem_interleave(struct vm_area_struct *vma,
+					unsigned long addr)
+{
+	unsigned long offset;
+
+	/* Use the vm_files prefered node as the initial offset. */
+	offset = (unsigned long *) vma->vm_private_data;
+
offset is 'unsigned long', but here you cast ->private_data to 'unsigned
long *'?? Please test your patches before posting.

Thanks.


--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help