diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2012-06-08 02:51:39 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2012-07-14 14:35:06 +0200 |
commit | 469796d10590341c53cff0a2959254eaf5d465de (patch) | |
tree | 74728e34d43bbcd16600de66df8c453d3a35ee63 /fs/sysfs/sysfs.h | |
parent | get rid of kern_path_parent() (diff) | |
download | linux-469796d10590341c53cff0a2959254eaf5d465de.tar.xz linux-469796d10590341c53cff0a2959254eaf5d465de.zip |
sysfs: switch to ->s_d_op and ->d_release()
a) ->d_iput() is wrong here - what we do to inode is completely usual, it's
dentry->d_fsdata that we want to drop. Just use ->d_release().
b) switch to ->s_d_op - no need to play with d_set_d_op()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to '')
-rw-r--r-- | fs/sysfs/sysfs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/sysfs/sysfs.h b/fs/sysfs/sysfs.h index 661a9639570b..d73c0932bbd6 100644 --- a/fs/sysfs/sysfs.h +++ b/fs/sysfs/sysfs.h @@ -157,6 +157,7 @@ extern struct kmem_cache *sysfs_dir_cachep; */ extern struct mutex sysfs_mutex; extern spinlock_t sysfs_assoc_lock; +extern const struct dentry_operations sysfs_dentry_ops; extern const struct file_operations sysfs_dir_operations; extern const struct inode_operations sysfs_dir_inode_operations; |