commit | 7b19b8d45b216ff3186f066b31937bdbde066f08 | [log] [tgz] |
---|---|---|
author | Robert Jennings <rcj@linux.vnet.ibm.com> | Fri Jan 28 08:58:17 2011 -0600 |
committer | Greg Kroah-Hartman <gregkh@suse.de> | Fri Feb 04 13:29:11 2011 -0800 |
tree | fa0264a6010c8e1833a1839726aa003e5f456885 | |
parent | f3bc232c2eb1dac5ac3dbaca0099ce51a615a478 [diff] |
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 <rcj@linux.vnet.ibm.com> Reviewed-by: Pekka Enberg <penberg@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>