Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1246246
| From | Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] zsmalloc: don't test shrinker_enabled in zs_shrinker_count() |
| Date | 2015-10-14 04:00 +0200 |
| Message-ID | <qjjwe-9o-5@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
We don't let user to disable shrinker in zsmalloc (once
it's been enabled), so no need to check ->shrinker_enabled
in zs_shrinker_count(), at the moment at least.
Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
---
mm/zsmalloc.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/mm/zsmalloc.c b/mm/zsmalloc.c
index 7ad5e54..8ba247d 100644
--- a/mm/zsmalloc.c
+++ b/mm/zsmalloc.c
@@ -1822,9 +1822,6 @@ static unsigned long zs_shrinker_count(struct shrinker *shrinker,
struct zs_pool *pool = container_of(shrinker, struct zs_pool,
shrinker);
- if (!pool->shrinker_enabled)
- return 0;
-
for (i = zs_size_classes - 1; i >= 0; i--) {
class = pool->size_class[i];
if (!class)
--
2.6.1.134.g4b1fd35
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH] zsmalloc: don't test shrinker_enabled in zs_shrinker_count() Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com> - 2015-10-14 04:00 +0200
Re: [PATCH] zsmalloc: don't test shrinker_enabled in zs_shrinker_count() Minchan Kim <minchan@kernel.org> - 2015-10-15 04:30 +0200
Re: [PATCH] zsmalloc: don't test shrinker_enabled in zs_shrinker_count() Sergey Senozhatsky <sergey.senozhatsky.work@gmail.com> - 2015-10-15 06:00 +0200
Re: [PATCH] zsmalloc: don't test shrinker_enabled in zs_shrinker_count() Minchan Kim <minchan@kernel.org> - 2015-10-15 12:40 +0200
csiph-web