diff options
| author | Tejun Heo <tj@kernel.org> | 2013-11-23 17:21:51 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-11-27 16:57:57 -0500 |
| commit | 890ece160c6465b49c42975d529c3481d89da8f5 (patch) | |
| tree | 77cc4d36a9d32d0055a752cae5e3a95806dc87d7 /fs/sysfs/sysfs.h | |
| parent | 5d0e26bb59a680a5d97db5b6629941603e8de229 (diff) | |
sysfs, kernfs: introduce kernfs_rename[_ns]()
Introduce kernfs rename interface, krenfs_rename[_ns]().
This is just rename of sysfs_rename(). No functional changes.
Function comment is added to kernfs_rename_ns() and @new_parent_sd is
renamed to @new_parent for consistency with other kernfs interfaces.
v2: Dummy implementation for !CONFIG_SYSFS updated to return -ENOSYS.
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, 0 insertions, 3 deletions
diff --git a/fs/sysfs/sysfs.h b/fs/sysfs/sysfs.h index 97625b15ca03..8b3fc210b90d 100644 --- a/fs/sysfs/sysfs.h +++ b/fs/sysfs/sysfs.h | |||
| @@ -185,9 +185,6 @@ void release_sysfs_dirent(struct sysfs_dirent *sd); | |||
| 185 | int sysfs_create_subdir(struct kobject *kobj, const char *name, | 185 | int sysfs_create_subdir(struct kobject *kobj, const char *name, |
| 186 | struct sysfs_dirent **p_sd); | 186 | struct sysfs_dirent **p_sd); |
| 187 | 187 | ||
| 188 | int sysfs_rename(struct sysfs_dirent *sd, struct sysfs_dirent *new_parent_sd, | ||
| 189 | const char *new_name, const void *new_ns); | ||
| 190 | |||
| 191 | static inline struct sysfs_dirent *__sysfs_get(struct sysfs_dirent *sd) | 188 | static inline struct sysfs_dirent *__sysfs_get(struct sysfs_dirent *sd) |
| 192 | { | 189 | { |
| 193 | if (sd) { | 190 | if (sd) { |
