Thread (6 messages) 6 messages, 3 authors, 2013-01-29

Re: [PATCH v2 5/6] memcg: introduce swap_cgroup_init()/swap_cgroup_free()

From: Michal Hocko <hidden>
Date: 2013-01-29 16:09:19
Also in: linux-mm

On Tue 29-01-13 23:51:42, Jeff Liu wrote:
On 01/29/2013 10:56 PM, Michal Hocko wrote:
quoted
On Mon 28-01-13 18:54:47, Jeff Liu wrote:
quoted
Introduce swap_cgroup_init()/swap_cgroup_free() to allocate buffers when creating the first
non-root memcg and deallocate buffers on the last non-root memcg is gone.
I think this deserves more words ;) At least it would be good to
describe contexts from which init and free might be called. What are the
locking rules.
Also swap_cgroup_destroy sounds more in pair with swap_cgroup_init.
Will improve the comments log as well as fix the naming.  Btw, I named
it as swap_cgroup_free() because we have mem_cgroup_free() corresponding
to mem_cgroup_init(). :)
I do see mem_cgroup_alloc and __mem_cgroup_free. Anyway this is not that
important. Consistent naming is not any rule. It is nice to have though.
So take these renaming suggestions as hints rather than you definitely
_have_ to do that.

[...]
-- 
Michal Hocko
SUSE Labs
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help