lkml.org 
[lkml]   [2007]   [Sep]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH 15/33] task-containersv11-add-container_clone-interface-cgroups-fix-refcount-bug
    Updates cgroup_clone() to use lookup_one_len() rather than
    cgroup_get_dentry(). Originally part of
    task-cgroupsv11-basic-task-cgroup-framework-cgroups-fix-refcount-bug
    but split out by akpm for the -mm tree.

    Signed-off-by: Paul Menage <menage@google.com>

    ---
    kernel/cgroup.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    Index: linux-2.6.23-rc4-mm1-new/kernel/cgroup.c
    ===================================================================
    --- linux-2.6.23-rc4-mm1-new.orig/kernel/cgroup.c
    +++ linux-2.6.23-rc4-mm1-new/kernel/cgroup.c
    @@ -2577,7 +2577,7 @@ int cgroup_clone(struct task_struct *tsk
    /* Hold the parent directory mutex across this operation to
    * stop anyone else deleting the new cgroup */
    mutex_lock(&inode->i_mutex);
    - dentry = cgroup_get_dentry(parent->dentry, nodename);
    + dentry = lookup_one_len(nodename, parent->dentry, strlen(nodename));
    if (IS_ERR(dentry)) {
    printk(KERN_INFO
    "Couldn't allocate dentry for %s: %ld\n", nodename,
    --
    -
    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/

    \
     
     \ /
      Last update: 2007-09-17 23:23    [W:0.026 / U:0.096 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site