lkml.org 
[lkml]   [2009]   [Dec]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH 21/24] cgroup: define empty css_put() when !CONFIG_CGROUPS
    It will be used by the hwpoison inject code for releasing the
    css grabbed by try_get_mem_cgroup_from_page().

    CC: Balbir Singh <balbir@linux.vnet.ibm.com>
    CC: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
    CC: Li Zefan <lizf@cn.fujitsu.com>
    CC: Paul Menage <menage@google.com>
    Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
    ---
    include/linux/cgroup.h | 3 +++
    1 file changed, 3 insertions(+)

    --- linux-mm.orig/include/linux/cgroup.h 2009-11-02 10:18:41.000000000 +0800
    +++ linux-mm/include/linux/cgroup.h 2009-11-02 10:26:22.000000000 +0800
    @@ -581,6 +581,9 @@ static inline int cgroupstats_build(stru
    return -EINVAL;
    }

    +struct cgroup_subsys_state;
    +static inline void css_put(struct cgroup_subsys_state *css) {}
    +
    #endif /* !CONFIG_CGROUPS */

    #endif /* _LINUX_CGROUP_H */



    \
     
     \ /
      Last update: 2009-12-02 05:41    [W:0.023 / U:0.088 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site