From: Jerome Marchand Date: Thu, 17 Feb 2011 16:11:49 +0000 (+0100) Subject: Staging: zram: initialize device on first read X-Git-Tag: v2.6.39-rc1~469^2~495 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6642a67c552e6d525913bb5fb4a00b2008213451;p=pandora-kernel.git Staging: zram: initialize device on first read Currently the device is initialized when first write is done to the device. Any read attempt before the first write would fail, including "hidden" read the user may not know about (as for example if he tries to write a partial block). This patch initializes the device on first request, whether read or write. Signed-off-by: Jerome Marchand Cc: Nitin Gupta Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed