]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mm-remove-compressed-copy-from-zram-in-memory-fix
authorAndrew Morton <akpm@linux-foundation.org>
Thu, 23 May 2013 00:37:09 +0000 (10:37 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 27 May 2013 06:09:00 +0000 (16:09 +1000)
tweak comment text

Cc: Dan Magenheimer <dan.magenheimer@oracle.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Konrad Rzeszutek Wilk <konrad@darnok.org>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Nitin Gupta <ngupta@vflare.org>
Cc: Seth Jennings <sjenning@linux.vnet.ibm.com>
Cc: Shaohua Li <shli@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/page_io.c

index 736ffac48030540f4f52efa3fe0062885f330962..1897abb8fdf6e2a406ba983f366c2733a4c7026b 100644 (file)
@@ -88,20 +88,20 @@ void end_swap_bio_read(struct bio *bio, int err)
                sis = page_swap_info(page);
                if (sis->flags & SWP_BLKDEV) {
                        /*
-                        * Swap subsystem does lazy swap slot free with
-                        * expecting the page would be swapped out again
-                        * so we can avoid unnecessary write if the page
-                        * isn't redirty.
-                        * It's good for real swap storage  because we can
+                        * The swap subsystem performs lazy swap slot freeing,
+                        * expecting that the page will be swapped out again.
+                        * So we can avoid an unnecessary write if the page
+                        * isn't redirtied.
+                        * This is good for real swap storage because we can
                         * reduce unnecessary I/O and enhance wear-leveling
-                        * if you use SSD as swap device.
-                        * But if you use in-memory swap device(ex, zram),
-                        * it causes duplicated copy between uncompressed
+                        * if an SSD is used as the as swap device.
+                        * But if in-memory swap device (eg zram) is used,
+                        * this causes a duplicated copy between uncompressed
                         * data in VM-owned memory and compressed data in
-                        * zram-owned memory. So let's free zram-owned memory
-                        * and make the VM-owned decompressed page *dirty*
-                        * so the page should be swap out somewhere again if
-                        * we want to reclaim it, again.
+                        * zram-owned memory.  So let's free zram-owned memory
+                        * and make the VM-owned decompressed page *dirty*,
+                        * so the page should be swapped out somewhere again if
+                        * we again wish to reclaim it.
                         */
                        struct gendisk *disk = sis->bdev->bd_disk;
                        if (disk->fops->swap_slot_free_notify) {