From: Robert Jennings Date: Fri, 28 Jan 2011 14:58:17 +0000 (-0600) Subject: zram: Prevent overflow in logical block size X-Git-Tag: v2.6.39-rc1~469^2~663 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b19b8d45b216ff3186f066b31937bdbde066f08;p=pandora-kernel.git zram: Prevent overflow in logical block size On a 64K page kernel, the value PAGE_SIZE passed to blk_queue_logical_block_size would overflow the logical block size argument (resulting in setting it to 0). This patch sets the logical block size to 4096, using a new ZRAM_LOGICAL_BLOCK_SIZE constant. Signed-off-by: Robert Jennings Reviewed-by: Pekka Enberg Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed