aboutsummaryrefslogtreecommitdiffstats
path: root/fs/sysfs/symlink.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/sysfs/symlink.c')
-rw-r--r--fs/sysfs/symlink.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/sysfs/symlink.c b/fs/sysfs/symlink.c
index c96b31a16485..88c8bc5e8911 100644
--- a/fs/sysfs/symlink.c
+++ b/fs/sysfs/symlink.c
@@ -144,7 +144,7 @@ void sysfs_delete_link(struct kobject *kobj, struct kobject *targ,
144 if (targ->sd) 144 if (targ->sd)
145 ns = targ->sd->s_ns; 145 ns = targ->sd->s_ns;
146 spin_unlock(&sysfs_assoc_lock); 146 spin_unlock(&sysfs_assoc_lock);
147 sysfs_hash_and_remove(kobj->sd, ns, name); 147 sysfs_hash_and_remove(kobj->sd, name, ns);
148} 148}
149 149
150/** 150/**
@@ -161,7 +161,7 @@ void sysfs_remove_link(struct kobject *kobj, const char *name)
161 else 161 else
162 parent_sd = kobj->sd; 162 parent_sd = kobj->sd;
163 163
164 sysfs_hash_and_remove(parent_sd, NULL, name); 164 sysfs_hash_and_remove(parent_sd, name, NULL);
165} 165}
166EXPORT_SYMBOL_GPL(sysfs_remove_link); 166EXPORT_SYMBOL_GPL(sysfs_remove_link);
167 167
@@ -201,7 +201,7 @@ int sysfs_rename_link_ns(struct kobject *kobj, struct kobject *targ,
201 if (sd->s_symlink.target_sd->s_dir.kobj != targ) 201 if (sd->s_symlink.target_sd->s_dir.kobj != targ)
202 goto out; 202 goto out;
203 203
204 result = sysfs_rename(sd, parent_sd, new_ns, new); 204 result = sysfs_rename(sd, parent_sd, new, new_ns);
205 205
206out: 206out:
207 sysfs_put(sd); 207 sysfs_put(sd);