aboutsummaryrefslogtreecommitdiffstats
path: root/fs/sysfs/symlink.c
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2007-09-20 03:05:11 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2007-10-12 17:51:10 -0400
commitb1fc3d6144d56360d1373b01c7881826f558b6cd (patch)
tree3bac4c3df21dc74c6373c3e4a22c3ea6b01b1832 /fs/sysfs/symlink.c
parent078ce6409ca54d5fc6eb7d2147cd6efc3eb09078 (diff)
sysfs: make s_elem an anonymous union
Make s_elem an anonymous union. Prefixing with s_elem makes things needlessly longer without any advantage. Signed-off-by: Tejun Heo <htejun@gmail.com> Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs/sysfs/symlink.c')
-rw-r--r--fs/sysfs/symlink.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/sysfs/symlink.c b/fs/sysfs/symlink.c
index 8ad38bccc0e4..ffa82e9802ad 100644
--- a/fs/sysfs/symlink.c
+++ b/fs/sysfs/symlink.c
@@ -86,7 +86,7 @@ int sysfs_create_link(struct kobject * kobj, struct kobject * target, const char
86 if (!sd) 86 if (!sd)
87 goto out_put; 87 goto out_put;
88 88
89 sd->s_elem.symlink.target_sd = target_sd; 89 sd->s_symlink.target_sd = target_sd;
90 target_sd = NULL; /* reference is now owned by the symlink */ 90 target_sd = NULL; /* reference is now owned by the symlink */
91 91
92 sysfs_addrm_start(&acxt, parent_sd); 92 sysfs_addrm_start(&acxt, parent_sd);
@@ -142,7 +142,7 @@ static int sysfs_getlink(struct dentry *dentry, char * path)
142{ 142{
143 struct sysfs_dirent *sd = dentry->d_fsdata; 143 struct sysfs_dirent *sd = dentry->d_fsdata;
144 struct sysfs_dirent *parent_sd = sd->s_parent; 144 struct sysfs_dirent *parent_sd = sd->s_parent;
145 struct sysfs_dirent *target_sd = sd->s_elem.symlink.target_sd; 145 struct sysfs_dirent *target_sd = sd->s_symlink.target_sd;
146 int error; 146 int error;
147 147
148 mutex_lock(&sysfs_mutex); 148 mutex_lock(&sysfs_mutex);