aboutsummaryrefslogtreecommitdiffstats
path: root/fs/kernfs/inode.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2013-12-11 14:11:56 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-12-11 20:39:20 -0500
commitdf23fc39bce03bb26e63bea57fc5f5bf6882d74b (patch)
tree9317af4854fd05e326a93ac736160fdc56ddbabc /fs/kernfs/inode.c
parentc525aaddc366df23eb095d58a2bdf11cce62a98b (diff)
kernfs: s/sysfs/kernfs/ in constants
kernfs has just been separated out from sysfs and we're already in full conflict mode. Nothing can make the situation any worse. Let's take the chance to name things properly. This patch performs the following renames. * s/SYSFS_DIR/KERNFS_DIR/ * s/SYSFS_KOBJ_ATTR/KERNFS_FILE/ * s/SYSFS_KOBJ_LINK/KERNFS_LINK/ * s/SYSFS_{TYPE_FLAGS}/KERNFS_{TYPE_FLAGS}/ * s/SYSFS_FLAG_{FLAG}/KERNFS_{FLAG}/ * s/sysfs_type()/kernfs_type()/ * s/SD_DEACTIVATED_BIAS/KN_DEACTIVATED_BIAS/ This patch is strictly rename only and doesn't introduce any functional difference. Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/kernfs/inode.c')
-rw-r--r--fs/kernfs/inode.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/kernfs/inode.c b/fs/kernfs/inode.c
index a0e0038fd570..af92638d792b 100644
--- a/fs/kernfs/inode.c
+++ b/fs/kernfs/inode.c
@@ -269,7 +269,7 @@ static void sysfs_refresh_inode(struct kernfs_node *kn, struct inode *inode)
269 attrs->ia_secdata_len); 269 attrs->ia_secdata_len);
270 } 270 }
271 271
272 if (sysfs_type(kn) == SYSFS_DIR) 272 if (kernfs_type(kn) == KERNFS_DIR)
273 set_nlink(inode, kn->dir.subdirs + 2); 273 set_nlink(inode, kn->dir.subdirs + 2);
274} 274}
275 275
@@ -299,16 +299,16 @@ static void sysfs_init_inode(struct kernfs_node *kn, struct inode *inode)
299 sysfs_refresh_inode(kn, inode); 299 sysfs_refresh_inode(kn, inode);
300 300
301 /* initialize inode according to type */ 301 /* initialize inode according to type */
302 switch (sysfs_type(kn)) { 302 switch (kernfs_type(kn)) {
303 case SYSFS_DIR: 303 case KERNFS_DIR:
304 inode->i_op = &sysfs_dir_inode_operations; 304 inode->i_op = &sysfs_dir_inode_operations;
305 inode->i_fop = &sysfs_dir_operations; 305 inode->i_fop = &sysfs_dir_operations;
306 break; 306 break;
307 case SYSFS_KOBJ_ATTR: 307 case KERNFS_FILE:
308 inode->i_size = kn->attr.size; 308 inode->i_size = kn->attr.size;
309 inode->i_fop = &kernfs_file_operations; 309 inode->i_fop = &kernfs_file_operations;
310 break; 310 break;
311 case SYSFS_KOBJ_LINK: 311 case KERNFS_LINK:
312 inode->i_op = &sysfs_symlink_inode_operations; 312 inode->i_op = &sysfs_symlink_inode_operations;
313 break; 313 break;
314 default: 314 default: