Skip to contentSkip to conversation

zram-remove-unnecessary-free.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jan 31, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Subject: [merged] zram-remove-unnecessary-free.patch removed from -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Fri, 31 Jan 2014 11:16:25 -0800

The patch titled
Subject: zram: remove unnecessary free
has been removed from the -mm tree. Its filename was
zram-remove-unnecessary-free.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Minchan Kim <[email protected]>
Subject: 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.

---

 drivers/block/zram/zram_drv.c |    8 --------
 1 file changed, 8 deletions(-)
drivers/block/zram/zram_drv.c renamed from drivers/block/zram/zram_drv.c~zram-remove-unnecessary-free +0 -7
diff -puN drivers/block/zram/zram_drv.c~zram-remove-unnecessary-free drivers/block/zram/zram_drv.c
@@ -441,14 +441,6 @@ static int zram_bvec_write(struct zram *
 		goto out;
 	}
 
-	/*
-	 * zram_slot_free_notify could miss free so that let's
-	 * double check.
-	 */
-	if (unlikely(meta->table[index].handle ||
-			zram_test_flag(meta, index, ZRAM_ZERO)))
-		zram_free_page(zram, index);