From: Nitin Gupta Date: Mon, 17 May 2010 05:32:43 +0000 (+0530) Subject: swap: Add swap slot free callback to block_device_operations X-Git-Tag: v2.6.35-rc1~441^2^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3a27d0529c6e5206f1b60f60263e3ecfd0d77cb;p=pandora-kernel.git swap: Add swap slot free callback to block_device_operations This callback is required when RAM based devices are used as swap disks. One such device is ramzswap which is used as compressed in-memory swap disk. For such devices, we need a callback as soon as a swap slot is no longer used to allow freeing memory allocated for this slot. Without this callback, stale data can quickly accumulate in memory defeating the whole purpose of such devices. Signed-off-by: Nitin Gupta Acked-by: Linus Torvalds Acked-by: Nigel Cunningham Acked-by: Pekka Enberg Reviewed-by: Minchan Kim Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed