diff options
author | Tejun Heo <tj@kernel.org> | 2013-11-28 14:54:19 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-11-29 20:35:05 -0500 |
commit | c6fb449515f23edea828fb90a460d3622e261dba (patch) | |
tree | 033c7d86147c0773f06854e40f76feae8df3c22e /fs/sysfs/sysfs.h | |
parent | fdbffaa478fc77e999cbe2ac0dcfbf609103e675 (diff) |
sysfs, kernfs: prepare open, release, poll paths for kernfs
We're in the process of separating out core sysfs functionality into
kernfs which will deal with sysfs_dirents directly. This patch
prepares the rest - open, release and poll. There isn't much to do.
Just renaming is enough. As sysfs_file_operations and
sysfs_bin_operations are identical now, use the same file_operations
for both - kernfs_file_operations.
This patch doesn't introduce any behavior changes.
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/sysfs/sysfs.h')
-rw-r--r-- | fs/sysfs/sysfs.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/sysfs/sysfs.h b/fs/sysfs/sysfs.h index 9ac234ef4943..619250d2d7c1 100644 --- a/fs/sysfs/sysfs.h +++ b/fs/sysfs/sysfs.h | |||
@@ -212,8 +212,7 @@ int sysfs_inode_init(void); | |||
212 | /* | 212 | /* |
213 | * file.c | 213 | * file.c |
214 | */ | 214 | */ |
215 | extern const struct file_operations sysfs_file_operations; | 215 | extern const struct file_operations kernfs_file_operations; |
216 | extern const struct file_operations sysfs_bin_operations; | ||
217 | 216 | ||
218 | int sysfs_add_file(struct sysfs_dirent *dir_sd, | 217 | int sysfs_add_file(struct sysfs_dirent *dir_sd, |
219 | const struct attribute *attr, int type); | 218 | const struct attribute *attr, int type); |