Staging: ramzswap: Minor spelling fixes
authorC yp <cyp561@gmail.com>
Wed, 6 Jan 2010 12:42:00 +0000 (13:42 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 4 Mar 2010 00:42:38 +0000 (16:42 -0800)
Also removed an extra semicolon.

Signed-off-by: Cyp <cyp561@gmail.com>
Cc: Nitin Gupta <ngupta@vflare.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/ramzswap/Kconfig
drivers/staging/ramzswap/ramzswap.txt
drivers/staging/ramzswap/ramzswap_drv.c
drivers/staging/ramzswap/ramzswap_drv.h
drivers/staging/ramzswap/ramzswap_ioctl.h
drivers/staging/ramzswap/xvmalloc.c
drivers/staging/ramzswap/xvmalloc_int.h

index 24e25691fae2d31bae3bfbf3d746cdf2b0eb88fa..127b3c6c9596a2620a6f5393bafca0d72be5a090 100644 (file)
@@ -5,7 +5,7 @@ config RAMZSWAP
        select LZO_DECOMPRESS
        default n
        help
-         Creates virtual block devices which can be used (only) as a swap
+         Creates virtual block devices which can (only) be used as swap
          disks. Pages swapped to these disks are compressed and stored in
          memory itself.
 
index e9f1619505a05c83635458a2f13f482dfb9fdadb..9694acfeb43f319d0ddb5be4a82eb85a9c94365b 100644 (file)
@@ -5,9 +5,9 @@ Project home: http://compcache.googlecode.com/
 
 * Introduction
 
-It creates RAM based block devices which can be used (only) as swap disks.
-Pages swapped to these devices are compressed and stored in memory itself.
-See project home for use cases, performance numbers and a lot more.
+The ramzswap module creates RAM based block devices which can (only) be used as
+swap disks. Pages swapped to these devices are compressed and stored in memory
+itself. See project home for use cases, performance numbers and a lot more.
 
 Individual ramzswap devices are configured and initialized using rzscontrol
 userspace utility as shown in examples below. See rzscontrol man page for more
index 18196f3852d8df11877d41348b74d96f61662390..7a7ead4e6c87527bf25ef27062cabc6005f32754 100644 (file)
@@ -730,7 +730,7 @@ static int ramzswap_read(struct ramzswap *rzs, struct bio *bio)
        if (!rzs->table[index].page)
                return handle_ramzswap_fault(rzs, bio);
 
-       /* Page is stored uncompressed since its incompressible */
+       /* Page is stored uncompressed since it's incompressible */
        if (unlikely(rzs_test_flag(rzs, index, RZS_UNCOMPRESSED)))
                return handle_uncompressed_page(rzs, bio);
 
@@ -792,7 +792,7 @@ static int ramzswap_write(struct ramzswap *rzs, struct bio *bio)
                ramzswap_free_page(rzs, index);
 
        /*
-        * No memory ia allocated for zero filled pages.
+        * No memory is allocated for zero filled pages.
         * Simply clear zero page flag.
         */
        if (rzs_test_flag(rzs, index, RZS_ZERO)) {
index a6ea240935b66eb9459fb3e1d5f86d88dcced46e..7ba98bfee2d6d1271ccc20dac1bbb064a1a3cc41 100644 (file)
@@ -102,7 +102,7 @@ struct table {
        u16 offset;
        u8 count;       /* object ref count (not yet used) */
        u8 flags;
-} __attribute__((aligned(4)));;
+} __attribute__((aligned(4)));
 
 /*
  * Swap extent information in case backing swap is a regular
@@ -121,8 +121,8 @@ struct ramzswap_stats {
 #if defined(CONFIG_RAMZSWAP_STATS)
        u64 num_reads;          /* failed + successful */
        u64 num_writes;         /* --do-- */
-       u64 failed_reads;       /* can happen when memory is too low */
-       u64 failed_writes;      /* should NEVER! happen */
+       u64 failed_reads;       /* should NEVER! happen */
+       u64 failed_writes;      /* can happen when memory is too low */
        u64 invalid_io;         /* non-swap I/O requests */
        u32 pages_zero;         /* no. of zero filled pages */
        u32 pages_stored;       /* no. of pages currently stored */
index c713a09af5809e695482b07ef5c7623133d23e88..1bc54e22c915ac6bd257a2d3f75291f2ea70b710 100644 (file)
@@ -24,8 +24,8 @@ struct ramzswap_ioctl_stats {
                                 * size (if present) */
        u64 num_reads;          /* failed + successful */
        u64 num_writes;         /* --do-- */
-       u64 failed_reads;       /* can happen when memory is too low */
-       u64 failed_writes;      /* should NEVER! happen */
+       u64 failed_reads;       /* should NEVER! happen */
+       u64 failed_writes;      /* can happen when memory is too low */
        u64 invalid_io;         /* non-swap I/O requests */
        u32 pages_zero;         /* no. of zero filled pages */
        u32 good_compress_pct;  /* no. of pages with compression ratio<=50% */
index b3e986c33141115611269ae555893b2f8646d0ee..dabd266a427b3fe87197eb87583e3428e525ace4 100644 (file)
@@ -273,7 +273,7 @@ static void remove_block(struct xv_pool *pool, struct page *page, u32 offset,
 }
 
 /*
- * Allocate a page and add it freelist of given pool.
+ * Allocate a page and add it to freelist of given pool.
  */
 static int grow_pool(struct xv_pool *pool, gfp_t flags)
 {
index 03c1a652a3aaf0d01245a0b0765f30a74685d98d..263c72d1fb3d32c3728fd59d1ec3251993148146 100644 (file)
@@ -62,7 +62,7 @@ struct link_free {
 
 struct block_header {
        union {
-               /* This common header must be ALIGN bytes */
+               /* This common header must be XV_ALIGN bytes */
                u8 common[XV_ALIGN];
                struct {
                        u16 size;
This page took 0.030326 seconds and 5 git commands to generate.