aboutsummaryrefslogtreecommitdiffstats
path: root/fs/sysfs/sysfs.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/sysfs/sysfs.h')
-rw-r--r--fs/sysfs/sysfs.h6
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);
71extern int sysfs_addrm_finish(struct sysfs_addrm_cxt *acxt); 71extern int sysfs_addrm_finish(struct sysfs_addrm_cxt *acxt);
72 72
73extern void sysfs_delete_inode(struct inode *inode);
74extern struct inode * sysfs_get_inode(struct sysfs_dirent *sd); 73extern struct inode * sysfs_get_inode(struct sysfs_dirent *sd);
75extern void sysfs_instantiate(struct dentry *dentry, struct inode *inode); 74extern 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
125static inline int sysfs_is_shadowed_inode(struct inode *inode)
126{
127 return S_ISDIR(inode->i_mode) && inode->i_op->follow_link;
128}