diff options
author | Tejun Heo <tj@kernel.org> | 2013-11-28 14:54:32 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-11-29 20:55:10 -0500 |
commit | ffed24e22845a3da0ae01095ae3f11c8d16e889d (patch) | |
tree | 7431e61de58265fbc2e58dbe6a6e1d4053875f79 /fs/kernfs/kernfs-internal.h | |
parent | ae6621b0716852146e4655fef7f74a181faa6c81 (diff) |
sysfs, kernfs: move inode code to fs/kernfs/inode.c
There's nothing sysfs-specific in fs/sysfs/inode.c. Move everything
in it to fs/kernfs/inode.c. The respective declarations in
fs/sysfs/sysfs.h are moved to fs/kernfs/kernfs-internal.h.
This is pure relocation.
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/kernfs/kernfs-internal.h')
-rw-r--r-- | fs/kernfs/kernfs-internal.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/fs/kernfs/kernfs-internal.h b/fs/kernfs/kernfs-internal.h index 5a2c3a17d7cb..933ac8d5d07a 100644 --- a/fs/kernfs/kernfs-internal.h +++ b/fs/kernfs/kernfs-internal.h | |||
@@ -112,4 +112,17 @@ struct sysfs_addrm_cxt { | |||
112 | 112 | ||
113 | #include "../sysfs/sysfs.h" | 113 | #include "../sysfs/sysfs.h" |
114 | 114 | ||
115 | /* | ||
116 | * inode.c | ||
117 | */ | ||
118 | struct inode *sysfs_get_inode(struct super_block *sb, struct sysfs_dirent *sd); | ||
119 | void sysfs_evict_inode(struct inode *inode); | ||
120 | int sysfs_permission(struct inode *inode, int mask); | ||
121 | int sysfs_setattr(struct dentry *dentry, struct iattr *iattr); | ||
122 | int sysfs_getattr(struct vfsmount *mnt, struct dentry *dentry, | ||
123 | struct kstat *stat); | ||
124 | int sysfs_setxattr(struct dentry *dentry, const char *name, const void *value, | ||
125 | size_t size, int flags); | ||
126 | int sysfs_inode_init(void); | ||
127 | |||
115 | #endif /* __KERNFS_INTERNAL_H */ | 128 | #endif /* __KERNFS_INTERNAL_H */ |