Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff -Nrupad linux-2.6.37_plus_v14_bak_2//drivers/staging/zram/zram_drv.c linux-2.6.37_plus_v14_bak/drivers/staging/zram/zram_drv.c
- --- linux-2.6.37_plus_v14_bak_2//drivers/staging/zram/zram_drv.c 2011-02-06 03:02:18.408979967 +0100
- +++ linux-2.6.37_plus_v14_bak/drivers/staging/zram/zram_drv.c 2011-02-06 03:09:24.775979622 +0100
- @@ -231,6 +231,7 @@ static int zram_read(struct zram *zram,
- if (zram_test_flag(zram, index, ZRAM_ZERO)) {
- handle_zero_page(page);
- + index++;
- continue;
- }
- @@ -239,12 +240,14 @@ static int zram_read(struct zram *zram,
- pr_debug("Read before write: sector=%lu, size=%u",
- (ulong)(bio->bi_sector), bio->bi_size);
- handle_zero_page(page);
- + index++;
- continue;
- }
- /* Page is stored uncompressed since it's incompressible */
- if (unlikely(zram_test_flag(zram, index, ZRAM_UNCOMPRESSED))) {
- handle_uncompressed_page(zram, page, index);
- + index++;
- continue;
- }
- @@ -324,6 +327,7 @@ static int zram_write(struct zram *zram,
- mutex_unlock(&zram->lock);
- zram_stat_inc(&zram->stats.pages_zero);
- zram_set_flag(zram, index, ZRAM_ZERO);
- + index++;
- continue;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement