-
- Downloads
sysfs: @name comes before @ns
Some internal sysfs functions which take explicit namespace argument are weird in that they place the optional @ns in front of @name which is contrary to the established convention. This is confusing and error-prone especially as @ns and @name may be interchanged without causing compilation warning. Swap the positions of @name and @ns in the following internal functions. sysfs_find_dirent() sysfs_rename() sysfs_hash_and_remove() sysfs_name_hash() sysfs_name_compare() create_dir() This patch doesn't introduce any functional changes. Signed-off-by:Tejun Heo <tj@kernel.org> Cc: Eric W. Biederman <ebiederm@xmission.com> Cc: Kay Sievers <kay@vrfy.org> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Showing
- fs/sysfs/bin.c 1 addition, 1 deletionfs/sysfs/bin.c
- fs/sysfs/dir.c 23 additions, 22 deletionsfs/sysfs/dir.c
- fs/sysfs/file.c 5 additions, 5 deletionsfs/sysfs/file.c
- fs/sysfs/group.c 6 additions, 6 deletionsfs/sysfs/group.c
- fs/sysfs/inode.c 3 additions, 3 deletionsfs/sysfs/inode.c
- fs/sysfs/symlink.c 3 additions, 3 deletionsfs/sysfs/symlink.c
- fs/sysfs/sysfs.h 5 additions, 5 deletionsfs/sysfs/sysfs.h
Loading
Please register or sign in to comment