]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
zram: remove unnecessary free
authorMinchan Kim <minchan@kernel.org>
Wed, 15 Jan 2014 05:56:12 +0000 (16:56 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 16 Jan 2014 05:54:04 +0000 (16:54 +1100)
commitb3e34f99594129ab4c99b6d4fd8a1194ac3b5118
tree3f083e7f6a3df29a749b5d5d54a0111c2339ce93
parent4a4a3699948bfb33fb23c20f1a6d806d33088502
zram: remove unnecessary free

a0c516cbfc ("zram: don't grab mutex in zram_slot_free_noity") introduced
pending zram slot free in zram's write path in case of missing slot free
by memory allocation failure in zram_slot_free_notify but it is not
necessary because we have already freed the slot right before overwriting.

Signed-off-by: Minchan Kim <minchan@kernel.org>
Cc: Nitin Gupta <ngupta@vflare.org>
Cc: Jerome Marchand <jmarchan@redhat.com>
Tested-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/block/zram/zram_drv.c