Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755880Ab3HBTlt (ORCPT ); Fri, 2 Aug 2013 15:41:49 -0400 Received: from mail-qe0-f45.google.com ([209.85.128.45]:51406 "EHLO mail-qe0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752208Ab3HBTlq (ORCPT ); Fri, 2 Aug 2013 15:41:46 -0400 Date: Fri, 2 Aug 2013 15:41:40 -0400 From: Tejun Heo To: Li Zefan Cc: containers@lists.linux-foundation.org, cgroups@vger.kernel.org, linux-kernel@vger.kernel.org, Peter Zijlstra , Ingo Molnar , Johannes Weiner , Michal Hocko , Balbir Singh , Aristeu Rozanski , Matt Helsley , Daniel Wagner , Vivek Goyal , Jens Axboe , Steven Rostedt Subject: Re: [PATCH 08/23] cgroup: pass around cgroup_subsys_state instead of cgroup in subsystem methods Message-ID: <20130802194140.GE29736@mtj.dyndns.org> References: <1375393801-4817-1-git-send-email-tj@kernel.org> <1375393801-4817-9-git-send-email-tj@kernel.org> <51FB2F3D.5050904@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <51FB2F3D.5050904@huawei.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 942 Lines: 27 On Fri, Aug 02, 2013 at 12:02:05PM +0800, Li Zefan wrote: > > @@ -4199,12 +4208,13 @@ static void init_cgroup_css(struct cgroup_subsys_state *css, > > /* invoke ->css_online() on a new CSS and mark it online if successful */ > > static int online_css(struct cgroup_subsys *ss, struct cgroup *cgrp) > > { > > + struct cgroup_subsys_state *css = cgrp->subsys[ss->subsys_id]; > > int ret = 0; > > > > lockdep_assert_held(&cgroup_mutex); > > > > if (ss->css_online) > > - ret = ss->css_online(cgrp); > > + ret = ss->css_online(css); > > if (!ret) > > cgrp->subsys[ss->subsys_id]->flags |= CSS_ONLINE; > > Then this can be changed to css->flags |= CSS_ONLINE. Aye aye. -- tejun -- 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/