diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2007-08-20 21:36:29 +0900 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-10-12 14:51:07 -0700 |
commit | 119dd52be33dfe6285f586ab7354897fdefc7e23 (patch) | |
tree | f7422f753f3605401d4ee0a34b85fb7a0038fbf3 /fs/sysfs/inode.c | |
parent | 372e88bd1922228e0a55228f6dc8e311d1696fa0 (diff) | |
download | linux-3.10-119dd52be33dfe6285f586ab7354897fdefc7e23.tar.gz linux-3.10-119dd52be33dfe6285f586ab7354897fdefc7e23.tar.bz2 linux-3.10-119dd52be33dfe6285f586ab7354897fdefc7e23.zip |
sysfs: Remove sysfs_instantiate
Now that sysfs_get_inode is dropping the inode lock
we no longer have a need from sysfs_instantiate.
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Tejun Heo <htejun@gmail.com>
Cc: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs/sysfs/inode.c')
-rw-r--r-- | fs/sysfs/inode.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/fs/sysfs/inode.c b/fs/sysfs/inode.c index 200e1bf6f93..0d706a86d2c 100644 --- a/fs/sysfs/inode.c +++ b/fs/sysfs/inode.c @@ -211,23 +211,6 @@ struct inode * sysfs_get_inode(struct sysfs_dirent *sd) return inode; } -/** - * sysfs_instantiate - instantiate dentry - * @dentry: dentry to be instantiated - * @inode: inode associated with @sd - * - * Unlock @inode if locked and instantiate @dentry with @inode. - * - * LOCKING: - * None. - */ -void sysfs_instantiate(struct dentry *dentry, struct inode *inode) -{ - BUG_ON(!dentry || dentry->d_inode); - - d_instantiate(dentry, inode); -} - int sysfs_hash_and_remove(struct sysfs_dirent *dir_sd, const char *name) { struct sysfs_addrm_cxt acxt; |