summaryrefslogtreecommitdiff
path: root/scripts/get_maintainer.pl
diff options
context:
space:
mode:
authorRobert Jennings <rcj@linux.vnet.ibm.com>2011-01-28 15:01:55 (GMT)
committerGreg Kroah-Hartman <gregkh@suse.de>2011-02-04 21:29:12 (GMT)
commit939b3f0b1415755d534a20f4067e6b367e1e4021 (patch)
tree73cdbaa2517bc6dcab4621d5de2be09949e48c55 /scripts/get_maintainer.pl
parent2787f959d6c5fb258d964218ac75346019f49ee9 (diff)
downloadlinux-fsl-qoriq-939b3f0b1415755d534a20f4067e6b367e1e4021.tar.xz
zram/xvmalloc: combine duplicate block delete code
This patch eliminates duplicate code. The remove_block_head function is a special case of remove_block which can be contained in remove_block without confusion. The portion of code in remove_block_head which was noted as "DEBUG ONLY" is now mandatory. Doing this provides consistent management of the double linked list of blocks under a freelist and makes this consolidation of delete block code safe. The first and last blocks will have NULL pointers in their previous and next page pointers respectively. Additionally, any time a block is removed from a free list the next and previous pointers will be set to NULL to avoid misuse outside xvmalloc. Signed-off-by: Robert Jennings <rcj@linux.vnet.ibm.com> Reviewed-by: Pekka Enberg <penberg@kernel.org> Acked-by: Nitin Gupta <ngupta@vflare.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'scripts/get_maintainer.pl')
0 files changed, 0 insertions, 0 deletions