Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752548Ab3HBECt (ORCPT ); Fri, 2 Aug 2013 00:02:49 -0400 Received: from szxga01-in.huawei.com ([119.145.14.64]:25745 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750871Ab3HBECs (ORCPT ); Fri, 2 Aug 2013 00:02:48 -0400 Message-ID: <51FB2F3D.5050904@huawei.com> Date: Fri, 2 Aug 2013 12:02:05 +0800 From: Li Zefan User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 MIME-Version: 1.0 To: Tejun Heo CC: , , , 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 References: <1375393801-4817-1-git-send-email-tj@kernel.org> <1375393801-4817-9-git-send-email-tj@kernel.org> In-Reply-To: <1375393801-4817-9-git-send-email-tj@kernel.org> Content-Type: text/plain; charset="GB2312" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.135.68.215] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 849 Lines: 24 > @@ -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. > return ret; -- 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/