aboutsummaryrefslogtreecommitdiffstats
path: root/fs/sysfs/inode.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/sysfs/inode.c')
-rw-r--r--fs/sysfs/inode.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/fs/sysfs/inode.c b/fs/sysfs/inode.c
index 200e1bf6f932..0d706a86d2c7 100644
--- a/fs/sysfs/inode.c
+++ b/fs/sysfs/inode.c
@@ -211,23 +211,6 @@ struct inode * sysfs_get_inode(struct sysfs_dirent *sd)
211 return inode; 211 return inode;
212} 212}
213 213
214/**
215 * sysfs_instantiate - instantiate dentry
216 * @dentry: dentry to be instantiated
217 * @inode: inode associated with @sd
218 *
219 * Unlock @inode if locked and instantiate @dentry with @inode.
220 *
221 * LOCKING:
222 * None.
223 */
224void sysfs_instantiate(struct dentry *dentry, struct inode *inode)
225{
226 BUG_ON(!dentry || dentry->d_inode);
227
228 d_instantiate(dentry, inode);
229}
230
231int sysfs_hash_and_remove(struct sysfs_dirent *dir_sd, const char *name) 214int sysfs_hash_and_remove(struct sysfs_dirent *dir_sd, const char *name)
232{ 215{
233 struct sysfs_addrm_cxt acxt; 216 struct sysfs_addrm_cxt acxt;