Thread (6 messages) 6 messages, 4 authors, 2012-05-31

Re: [PATCH 2/2 v2] zram: clean up handle

From: Seth Jennings <hidden>
Date: 2012-05-23 20:10:11
Also in: lkml

On 05/22/2012 08:43 PM, Minchan Kim wrote:
zram's handle variable can store handle of zsmalloc in case of
compressing efficiently. Otherwise, it stores point of page descriptor.
This patch clean up the mess by union struct.

changelog
  * from v1
	- none(new add in v2)

Cc: Nitin Gupta <redacted>
Cc: Seth Jennings <redacted>
Signed-off-by: Minchan Kim <minchan@kernel.org>

Not sure if the BUILD_BUG is completely needed since it's pretty well
assumed that sizeof(unsigned long) == sizeof(void *) but it does provide
some safety is someone tries to change the type of handle.

Acked-by: <redacted>

Thanks,
Seth

--
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/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
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