]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/kernfs/dir.c
sysfs, kernfs: make sysfs_dirent definition public
[karo-tx-linux.git] / fs / kernfs / dir.c
index eaffa83719d5629a2443abd4054bc4c6c2e5c8e2..7c5b51793689a22f08e86b93afe7901920717cc7 100644 (file)
@@ -895,21 +895,6 @@ int kernfs_rename_ns(struct sysfs_dirent *sd, struct sysfs_dirent *new_parent,
        return error;
 }
 
-/**
- * kernfs_enable_ns - enable namespace under a directory
- * @sd: directory of interest, should be empty
- *
- * This is to be called right after @sd is created to enable namespace
- * under it.  All children of @sd must have non-NULL namespace tags and
- * only the ones which match the super_block's tag will be visible.
- */
-void kernfs_enable_ns(struct sysfs_dirent *sd)
-{
-       WARN_ON_ONCE(sysfs_type(sd) != SYSFS_DIR);
-       WARN_ON_ONCE(!RB_EMPTY_ROOT(&sd->s_dir.children));
-       sd->s_flags |= SYSFS_FLAG_NS;
-}
-
 /* Relationship between s_mode and the DT_xxx types */
 static inline unsigned char dt_type(struct sysfs_dirent *sd)
 {