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 <ngupta@xxxxxxxxxx> > Cc: Seth Jennings <sjenning@xxxxxxxxxxxxxxxxxx> > Signed-off-by: Minchan Kim <minchan@xxxxxxxxxx> 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: <sjenning@xxxxxxxxxxxxxxxxxx> Thanks, Seth -- 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/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>