linux-kernel-test/drivers/staging/zram
Robert Jennings e3f201b541 zram/xvmalloc: free bit block insertion optimization
This change is in a conditional block which is entered only when there is
an existing data block on the freelist where the insert has taken place.

The new block is pushed onto the freelist stack and this conditional block
is updating links in the prior stack head to point to the new stack head.
After this conditional block the first-/second-level indices are updated
to indicate that there is a free block at this location.

This patch adds an immediate return from the conditional block to avoid
setting bits again to indicate a free block on this freelist. The bits
would already be set because there was an existing free block on this
freelist.

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>
2011-02-04 13:29:11 -08:00
..
Kconfig Staging: zram: make ZRAM depends on SYSFS 2011-01-20 16:06:18 -08:00
Makefile Staging: zram: Makefile: replace the use of <module>-objs with <module>-y 2010-10-08 07:23:41 -07:00
xvmalloc_int.h zram/vmalloc: Correct tunings to enable use with 64K pages 2011-02-04 13:29:10 -08:00
xvmalloc.c zram/xvmalloc: free bit block insertion optimization 2011-02-04 13:29:11 -08:00
xvmalloc.h
zram_drv.c zram: Prevent overflow in logical block size 2011-02-04 13:29:11 -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
zram.txt Staging: zram: Update zram documentation 2010-08-31 15:36:36 -07:00