linux-kernel-test/drivers/staging/zram
Nitin Gupta 484875adbc Staging: zram: Remove need for explicit device initialization
Currently, the user has to explicitly write a positive value to
initstate sysfs node before the device can be used. This event
triggers allocation of per-device metadata like memory pool,
table array and so on.

We do not pre-initialize all zram devices since the 'table' array,
mapping disk blocks to compressed chunks, takes considerable amount
of memory (8 bytes per page). So, pre-initializing all devices will
be quite wasteful if only few or none of the devices are actually
used.

This explicit device initialization from user is an odd requirement and
can be easily avoided. We now initialize the device when first write is
done to the device.

Signed-off-by: Nitin Gupta <ngupta@vflare.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-08-31 15:36:36 -07:00
..
Kconfig Staging: zram: Replace ioctls with sysfs interface 2010-08-31 15:33:54 -07:00
Makefile Staging: zram: Replace ioctls with sysfs interface 2010-08-31 15:33:54 -07:00
xvmalloc_int.h
xvmalloc.c
xvmalloc.h
zram_drv.c Staging: zram: Remove need for explicit device initialization 2010-08-31 15:36:36 -07:00
zram_drv.h Staging: zram: Remove need for explicit device initialization 2010-08-31 15:36:36 -07:00
zram_sysfs.c Staging: zram: Remove need for explicit device initialization 2010-08-31 15:36:36 -07:00
zram.txt Staging: zram: Rename ramzswap to zram in documentation 2010-06-18 12:50:30 -07:00