aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorC yp <cyp561@gmail.com>2010-01-06 07:42:00 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2010-03-03 19:42:38 -0500
commitef4ffb7ade54f7669172cf5cead69695e588c06a (patch)
tree3a76dc31353ecf147f9e1677b78e9fe90bc4c6e6
parent2141ec629c9c9a70c905cfebcc8fa69373dd982a (diff)
Staging: ramzswap: Minor spelling fixes
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>
-rw-r--r--drivers/staging/ramzswap/Kconfig2
-rw-r--r--drivers/staging/ramzswap/ramzswap.txt6
-rw-r--r--drivers/staging/ramzswap/ramzswap_drv.c4
-rw-r--r--drivers/staging/ramzswap/ramzswap_drv.h6
-rw-r--r--drivers/staging/ramzswap/ramzswap_ioctl.h4
-rw-r--r--drivers/staging/ramzswap/xvmalloc.c2
-rw-r--r--drivers/staging/ramzswap/xvmalloc_int.h2
7 files changed, 13 insertions, 13 deletions
diff --git a/drivers/staging/ramzswap/Kconfig b/drivers/staging/ramzswap/Kconfig
index 24e25691fae..127b3c6c959 100644
--- a/drivers/staging/ramzswap/Kconfig
+++ b/drivers/staging/ramzswap/Kconfig
@@ -5,7 +5,7 @@ config RAMZSWAP
5 select LZO_DECOMPRESS 5 select LZO_DECOMPRESS
6 default n 6 default n
7 help 7 help
8 Creates virtual block devices which can be used (only) as a swap 8 Creates virtual block devices which can (only) be used as swap
9 disks. Pages swapped to these disks are compressed and stored in 9 disks. Pages swapped to these disks are compressed and stored in
10 memory itself. 10 memory itself.
11 11
diff --git a/drivers/staging/ramzswap/ramzswap.txt b/drivers/staging/ramzswap/ramzswap.txt
index e9f1619505a..9694acfeb43 100644
--- a/drivers/staging/ramzswap/ramzswap.txt
+++ b/drivers/staging/ramzswap/ramzswap.txt
@@ -5,9 +5,9 @@ Project home: http://compcache.googlecode.com/
5 5
6* Introduction 6* Introduction
7 7
8It creates RAM based block devices which can be used (only) as swap disks. 8The ramzswap module creates RAM based block devices which can (only) be used as
9Pages swapped to these devices are compressed and stored in memory itself. 9swap disks. Pages swapped to these devices are compressed and stored in memory
10See project home for use cases, performance numbers and a lot more. 10itself. See project home for use cases, performance numbers and a lot more.
11 11
12Individual ramzswap devices are configured and initialized using rzscontrol 12Individual ramzswap devices are configured and initialized using rzscontrol
13userspace utility as shown in examples below. See rzscontrol man page for more 13userspace utility as shown in examples below. See rzscontrol man page for more
diff --git a/drivers/staging/ramzswap/ramzswap_drv.c b/drivers/staging/ramzswap/ramzswap_drv.c
index 18196f3852d..7a7ead4e6c8 100644
--- a/drivers/staging/ramzswap/ramzswap_drv.c
+++ b/drivers/staging/ramzswap/ramzswap_drv.c
@@ -730,7 +730,7 @@ static int ramzswap_read(struct ramzswap *rzs, struct bio *bio)
730 if (!rzs->table[index].page) 730 if (!rzs->table[index].page)
731 return handle_ramzswap_fault(rzs, bio); 731 return handle_ramzswap_fault(rzs, bio);
732 732
733 /* Page is stored uncompressed since its incompressible */ 733 /* Page is stored uncompressed since it's incompressible */
734 if (unlikely(rzs_test_flag(rzs, index, RZS_UNCOMPRESSED))) 734 if (unlikely(rzs_test_flag(rzs, index, RZS_UNCOMPRESSED)))
735 return handle_uncompressed_page(rzs, bio); 735 return handle_uncompressed_page(rzs, bio);
736 736
@@ -792,7 +792,7 @@ static int ramzswap_write(struct ramzswap *rzs, struct bio *bio)
792 ramzswap_free_page(rzs, index); 792 ramzswap_free_page(rzs, index);
793 793
794 /* 794 /*
795 * No memory ia allocated for zero filled pages. 795 * No memory is allocated for zero filled pages.
796 * Simply clear zero page flag. 796 * Simply clear zero page flag.
797 */ 797 */
798 if (rzs_test_flag(rzs, index, RZS_ZERO)) { 798 if (rzs_test_flag(rzs, index, RZS_ZERO)) {
diff --git a/drivers/staging/ramzswap/ramzswap_drv.h b/drivers/staging/ramzswap/ramzswap_drv.h
index a6ea240935b..7ba98bfee2d 100644
--- a/drivers/staging/ramzswap/ramzswap_drv.h
+++ b/drivers/staging/ramzswap/ramzswap_drv.h
@@ -102,7 +102,7 @@ struct table {
102 u16 offset; 102 u16 offset;
103 u8 count; /* object ref count (not yet used) */ 103 u8 count; /* object ref count (not yet used) */
104 u8 flags; 104 u8 flags;
105} __attribute__((aligned(4)));; 105} __attribute__((aligned(4)));
106 106
107/* 107/*
108 * Swap extent information in case backing swap is a regular 108 * Swap extent information in case backing swap is a regular
@@ -121,8 +121,8 @@ struct ramzswap_stats {
121#if defined(CONFIG_RAMZSWAP_STATS) 121#if defined(CONFIG_RAMZSWAP_STATS)
122 u64 num_reads; /* failed + successful */ 122 u64 num_reads; /* failed + successful */
123 u64 num_writes; /* --do-- */ 123 u64 num_writes; /* --do-- */
124 u64 failed_reads; /* can happen when memory is too low */ 124 u64 failed_reads; /* should NEVER! happen */
125 u64 failed_writes; /* should NEVER! happen */ 125 u64 failed_writes; /* can happen when memory is too low */
126 u64 invalid_io; /* non-swap I/O requests */ 126 u64 invalid_io; /* non-swap I/O requests */
127 u32 pages_zero; /* no. of zero filled pages */ 127 u32 pages_zero; /* no. of zero filled pages */
128 u32 pages_stored; /* no. of pages currently stored */ 128 u32 pages_stored; /* no. of pages currently stored */
diff --git a/drivers/staging/ramzswap/ramzswap_ioctl.h b/drivers/staging/ramzswap/ramzswap_ioctl.h
index c713a09af58..1bc54e22c91 100644
--- a/drivers/staging/ramzswap/ramzswap_ioctl.h
+++ b/drivers/staging/ramzswap/ramzswap_ioctl.h
@@ -24,8 +24,8 @@ struct ramzswap_ioctl_stats {
24 * size (if present) */ 24 * size (if present) */
25 u64 num_reads; /* failed + successful */ 25 u64 num_reads; /* failed + successful */
26 u64 num_writes; /* --do-- */ 26 u64 num_writes; /* --do-- */
27 u64 failed_reads; /* can happen when memory is too low */ 27 u64 failed_reads; /* should NEVER! happen */
28 u64 failed_writes; /* should NEVER! happen */ 28 u64 failed_writes; /* can happen when memory is too low */
29 u64 invalid_io; /* non-swap I/O requests */ 29 u64 invalid_io; /* non-swap I/O requests */
30 u32 pages_zero; /* no. of zero filled pages */ 30 u32 pages_zero; /* no. of zero filled pages */
31 u32 good_compress_pct; /* no. of pages with compression ratio<=50% */ 31 u32 good_compress_pct; /* no. of pages with compression ratio<=50% */
diff --git a/drivers/staging/ramzswap/xvmalloc.c b/drivers/staging/ramzswap/xvmalloc.c
index b3e986c3314..dabd266a427 100644
--- a/drivers/staging/ramzswap/xvmalloc.c
+++ b/drivers/staging/ramzswap/xvmalloc.c
@@ -273,7 +273,7 @@ static void remove_block(struct xv_pool *pool, struct page *page, u32 offset,
273} 273}
274 274
275/* 275/*
276 * Allocate a page and add it freelist of given pool. 276 * Allocate a page and add it to freelist of given pool.
277 */ 277 */
278static int grow_pool(struct xv_pool *pool, gfp_t flags) 278static int grow_pool(struct xv_pool *pool, gfp_t flags)
279{ 279{
diff --git a/drivers/staging/ramzswap/xvmalloc_int.h b/drivers/staging/ramzswap/xvmalloc_int.h
index 03c1a652a3a..263c72d1fb3 100644
--- a/drivers/staging/ramzswap/xvmalloc_int.h
+++ b/drivers/staging/ramzswap/xvmalloc_int.h
@@ -62,7 +62,7 @@ struct link_free {
62 62
63struct block_header { 63struct block_header {
64 union { 64 union {
65 /* This common header must be ALIGN bytes */ 65 /* This common header must be XV_ALIGN bytes */
66 u8 common[XV_ALIGN]; 66 u8 common[XV_ALIGN];
67 struct { 67 struct {
68 u16 size; 68 u16 size;