aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXishi Qiu <qiuxishi@huawei.com>2017-02-22 18:45:01 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2017-02-22 19:41:29 -0500
commit399d8eebe768fe3ae648700547d04f2a8796a4da (patch)
tree1df18c60766b6c8c7ad52c09188d90b2b047c300
parentd3a9d7a3784e3a54c08dcd9eafaef7ccb383a894 (diff)
mm: fix some typos in mm/zsmalloc.c
Delete extra semicolon, and fix some typos. Link: http://lkml.kernel.org/r/586F1823.4050107@huawei.com Signed-off-by: Xishi Qiu <qiuxishi@huawei.com> Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com> Acked-by: Minchan Kim <minchan@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r--mm/zsmalloc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c
index 9cc3c0b2c2c1..a1f24989ac23 100644
--- a/mm/zsmalloc.c
+++ b/mm/zsmalloc.c
@@ -25,7 +25,7 @@
25 * Usage of struct page flags: 25 * Usage of struct page flags:
26 * PG_private: identifies the first component page 26 * PG_private: identifies the first component page
27 * PG_private2: identifies the last component page 27 * PG_private2: identifies the last component page
28 * PG_owner_priv_1: indentifies the huge component page 28 * PG_owner_priv_1: identifies the huge component page
29 * 29 *
30 */ 30 */
31 31
@@ -364,7 +364,7 @@ static struct zspage *cache_alloc_zspage(struct zs_pool *pool, gfp_t flags)
364{ 364{
365 return kmem_cache_alloc(pool->zspage_cachep, 365 return kmem_cache_alloc(pool->zspage_cachep,
366 flags & ~(__GFP_HIGHMEM|__GFP_MOVABLE)); 366 flags & ~(__GFP_HIGHMEM|__GFP_MOVABLE));
367}; 367}
368 368
369static void cache_free_zspage(struct zs_pool *pool, struct zspage *zspage) 369static void cache_free_zspage(struct zs_pool *pool, struct zspage *zspage)
370{ 370{
@@ -2383,7 +2383,7 @@ struct zs_pool *zs_create_pool(const char *name)
2383 goto err; 2383 goto err;
2384 2384
2385 /* 2385 /*
2386 * Iterate reversly, because, size of size_class that we want to use 2386 * Iterate reversely, because, size of size_class that we want to use
2387 * for merging should be larger or equal to current size. 2387 * for merging should be larger or equal to current size.
2388 */ 2388 */
2389 for (i = zs_size_classes - 1; i >= 0; i--) { 2389 for (i = zs_size_classes - 1; i >= 0; i--) {