sysfs: Add support for tagged directories with untagged members.
[safe/jmp/linux-2.6] / fs / sysfs / inode.c
index cf2bad1..bbd77e9 100644 (file)
@@ -335,6 +335,8 @@ int sysfs_hash_and_remove(struct sysfs_dirent *dir_sd, const void *ns, const cha
        sysfs_addrm_start(&acxt, dir_sd);
 
        sd = sysfs_find_dirent(dir_sd, ns, name);
+       if (sd && (sd->s_ns != ns))
+               sd = NULL;
        if (sd)
                sysfs_remove_one(&acxt, sd);