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/inode.c | |
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/inode.c')
-rw-r--r-- | fs/sysfs/inode.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/sysfs/inode.c b/fs/sysfs/inode.c index 81cc8585b32c..4c463dabfc6a 100644 --- a/fs/sysfs/inode.c +++ b/fs/sysfs/inode.c | |||
@@ -272,12 +272,12 @@ static void sysfs_init_inode(struct sysfs_dirent *sd, struct inode *inode) | |||
272 | break; | 272 | break; |
273 | case SYSFS_KOBJ_ATTR: | 273 | case SYSFS_KOBJ_ATTR: |
274 | inode->i_size = PAGE_SIZE; | 274 | inode->i_size = PAGE_SIZE; |
275 | inode->i_fop = &sysfs_file_operations; | 275 | inode->i_fop = &kernfs_file_operations; |
276 | break; | 276 | break; |
277 | case SYSFS_KOBJ_BIN_ATTR: | 277 | case SYSFS_KOBJ_BIN_ATTR: |
278 | bin_attr = sd->priv; | 278 | bin_attr = sd->priv; |
279 | inode->i_size = bin_attr->size; | 279 | inode->i_size = bin_attr->size; |
280 | inode->i_fop = &sysfs_bin_operations; | 280 | inode->i_fop = &kernfs_file_operations; |
281 | break; | 281 | break; |
282 | case SYSFS_KOBJ_LINK: | 282 | case SYSFS_KOBJ_LINK: |
283 | inode->i_op = &sysfs_symlink_inode_operations; | 283 | inode->i_op = &sysfs_symlink_inode_operations; |