diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2007-07-31 06:15:08 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-10-12 17:51:03 -0400 |
commit | 90bc61359de0148f8627073d68a22edc7ed9893d (patch) | |
tree | b054bf0cb9bda41dab498086216f4c0253b2c5ed /fs/sysfs/sysfs.h | |
parent | 869512ab5ab93e5e82ad7d4aaf4ed098d23bfc3f (diff) |
sysfs: Remove first pass at shadow directory support
While shadow directories appear to be a good idea, the current scheme
of controlling their creation and destruction outside of sysfs appears
to be a locking and maintenance nightmare in the face of sysfs
directories dynamically coming and going. Which can now occur for
directories containing network devices when CONFIG_SYSFS_DEPRECATED is
not set.
This patch removes everything from the initial shadow directory support
that allowed the shadow directory creation to be controlled at a higher
level. So except for a few bits of sysfs_rename_dir everything from
commit b592fcfe7f06c15ec11774b5be7ce0de3aa86e73 is now gone.
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs/sysfs/sysfs.h')
-rw-r--r-- | fs/sysfs/sysfs.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/sysfs/sysfs.h b/fs/sysfs/sysfs.h index 6b8c8d76d308..b55e510ea239 100644 --- a/fs/sysfs/sysfs.h +++ b/fs/sysfs/sysfs.h | |||
@@ -70,7 +70,6 @@ extern void sysfs_remove_one(struct sysfs_addrm_cxt *acxt, | |||
70 | struct sysfs_dirent *sd); | 70 | struct sysfs_dirent *sd); |
71 | extern int sysfs_addrm_finish(struct sysfs_addrm_cxt *acxt); | 71 | extern int sysfs_addrm_finish(struct sysfs_addrm_cxt *acxt); |
72 | 72 | ||
73 | extern void sysfs_delete_inode(struct inode *inode); | ||
74 | extern struct inode * sysfs_get_inode(struct sysfs_dirent *sd); | 73 | extern struct inode * sysfs_get_inode(struct sysfs_dirent *sd); |
75 | extern void sysfs_instantiate(struct dentry *dentry, struct inode *inode); | 74 | extern void sysfs_instantiate(struct dentry *dentry, struct inode *inode); |
76 | 75 | ||
@@ -121,8 +120,3 @@ static inline void sysfs_put(struct sysfs_dirent * sd) | |||
121 | if (sd && atomic_dec_and_test(&sd->s_count)) | 120 | if (sd && atomic_dec_and_test(&sd->s_count)) |
122 | release_sysfs_dirent(sd); | 121 | release_sysfs_dirent(sd); |
123 | } | 122 | } |
124 | |||
125 | static inline int sysfs_is_shadowed_inode(struct inode *inode) | ||
126 | { | ||
127 | return S_ISDIR(inode->i_mode) && inode->i_op->follow_link; | ||
128 | } | ||