aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/zram
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@suse.de>2011-02-18 15:11:27 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2011-02-18 15:11:27 -0500
commit80ae3fa5d6712ef3625eff617f72e190645d6361 (patch)
treefd9be0ecbb4baa6385aa1a75af7ced5f7d691be4 /drivers/staging/zram
parent59db5b2b9e0327e545ff5764dadcb26062c2ab1f (diff)
parent85e2efbb1db9a18d218006706d6e4fbeb0216213 (diff)
Merge 2.6.38-rc5 into staging-next
This is to resolve a merge conflict with: drivers/staging/zram/zram_drv.c as pointed out by Stephen Rothwell Cc: Stephen Rothwell <sfr@canb.auug.org.au> Cc: Nitin Gupta <ngupta@vflare.org> Cc: Robert Jennings <rcj@linux.vnet.ibm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/zram')
-rw-r--r--drivers/staging/zram/zram_drv.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/staging/zram/zram_drv.c b/drivers/staging/zram/zram_drv.c
index 1017d6df17d..5fdf9d2fc95 100644
--- a/drivers/staging/zram/zram_drv.c
+++ b/drivers/staging/zram/zram_drv.c
@@ -230,6 +230,7 @@ static void zram_read(struct zram *zram, struct bio *bio)
230 230
231 if (zram_test_flag(zram, index, ZRAM_ZERO)) { 231 if (zram_test_flag(zram, index, ZRAM_ZERO)) {
232 handle_zero_page(page); 232 handle_zero_page(page);
233 index++;
233 continue; 234 continue;
234 } 235 }
235 236
@@ -238,12 +239,14 @@ static void zram_read(struct zram *zram, struct bio *bio)
238 pr_debug("Read before write: sector=%lu, size=%u", 239 pr_debug("Read before write: sector=%lu, size=%u",
239 (ulong)(bio->bi_sector), bio->bi_size); 240 (ulong)(bio->bi_sector), bio->bi_size);
240 handle_zero_page(page); 241 handle_zero_page(page);
242 index++;
241 continue; 243 continue;
242 } 244 }
243 245
244 /* Page is stored uncompressed since it's incompressible */ 246 /* Page is stored uncompressed since it's incompressible */
245 if (unlikely(zram_test_flag(zram, index, ZRAM_UNCOMPRESSED))) { 247 if (unlikely(zram_test_flag(zram, index, ZRAM_UNCOMPRESSED))) {
246 handle_uncompressed_page(zram, page, index); 248 handle_uncompressed_page(zram, page, index);
249 index++;
247 continue; 250 continue;
248 } 251 }
249 252
@@ -322,6 +325,7 @@ static void zram_write(struct zram *zram, struct bio *bio)
322 mutex_unlock(&zram->lock); 325 mutex_unlock(&zram->lock);
323 zram_stat_inc(&zram->stats.pages_zero); 326 zram_stat_inc(&zram->stats.pages_zero);
324 zram_set_flag(zram, index, ZRAM_ZERO); 327 zram_set_flag(zram, index, ZRAM_ZERO);
328 index++;
325 continue; 329 continue;
326 } 330 }
327 331