On Sun, 9 May 2010 03:10:22 +0300 "Kirill A. Shutemov" <kirill@xxxxxxxxxxxxx> wrote: > Since we unable to handle error returned by cftype.unregister_event() > properly, let's make the callback void-returning. > > mem_cgroup_unregister_event() has been rewritten to be "never fail" > function. On mem_cgroup_usage_register_event() we save old buffer > for thresholds array and reuse it in mem_cgroup_usage_unregister_event() > to avoid allocation. > > Signed-off-by: Kirill A. Shutemov <kirill@xxxxxxxxxxxxx> Hmm, just reusing buffer isn't enough ? as tmp = memory->thresholds; reduce entries on tmp And what happens when register register register unregister (use preallocated buffer) unregister ???? unregister Thanks, -Kame -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxxx For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>