linux-stable/drivers/staging/zram
Jerome Marchand 6642a67c55 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 <jmarchan@redhat.com>
Cc: Nitin Gupta <ngupta@vflare.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-02-18 13:26:12 -08:00
..
Kconfig zram/xvmalloc: create CONFIG_ZRAM_DEBUG for debug code 2011-02-04 13:29:11 -08:00
Makefile Staging: zram: Makefile: replace the use of <module>-objs with <module>-y 2010-10-08 07:23:41 -07:00
xvmalloc.c zram/xvmalloc: combine duplicate block delete code 2011-02-04 13:29:12 -08:00
xvmalloc.h
xvmalloc_int.h zram/xvmalloc: Close 32byte hole on 64bit CPUs 2011-02-04 13:29:11 -08:00
zram.txt
zram_drv.c Staging: zram: initialize device on first read 2011-02-18 13:26:12 -08:00
zram_drv.h zram: Prevent overflow in logical block size 2011-02-04 13:29:11 -08:00
zram_sysfs.c Staging: zram: round up the disk size provided by user 2011-01-20 16:06:18 -08:00