|
|
@@ -441,14 +441,6 @@ static int zram_bvec_write(struct zram *zram, struct bio_vec *bvec, u32 index,
|
|
|
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);
|
|
|
-
|
|
|
ret = lzo1x_1_compress(uncmem, PAGE_SIZE, src, &clen,
|
|
|
meta->compress_workmem);
|
|
|
|