projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c14466
)
memcg: remove unused code from kmem_cache_destroy_work_func
author
Vladimir Davydov
<
[email protected]
>
Thu, 23 Jan 2014 23:53:39 +0000
(15:53 -0800)
committer
Linus Torvalds
<
[email protected]
>
Fri, 24 Jan 2014 00:36:53 +0000
(16:36 -0800)
Signed-off-by: Vladimir Davydov <
[email protected]
>
Reviewed-by: Michal Hocko <
[email protected]
>
Cc: Johannes Weiner <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/memcontrol.c
patch
|
blob
|
history
diff --git
a/mm/memcontrol.c
b/mm/memcontrol.c
index 98f80beeac7f65a1e169d1b15abc9bf0ae09a20a..19d5d4274e221fcab953063fb169125876ab0e37 100644
(file)
--- a/
mm/memcontrol.c
+++ b/
mm/memcontrol.c
@@
-3359,11
+3359,9
@@
static void kmem_cache_destroy_work_func(struct work_struct *w)
* So if we aren't down to zero, we'll just schedule a worker and try
* again
*/
- if (atomic_read(&cachep->memcg_params->nr_pages) != 0)
{
+ if (atomic_read(&cachep->memcg_params->nr_pages) != 0)
kmem_cache_shrink(cachep);
- if (atomic_read(&cachep->memcg_params->nr_pages) == 0)
- return;
- } else
+ else
kmem_cache_destroy(cachep);
}