ns: modify function comment for projid
PATCH 1/1 ns: modify function comment for projid
Some function comments about projid are described
as uid, so fix it.
Signed-off-by Chengguang Xu <[email protected]>
--- kernel/user_namespace.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
kernel/user_namespace.c +4 -4
@@ -516,8 +516,8 @@ EXPORT_SYMBOL(from_kgid_munged);* @ns: User namespace that the projid is in * @projid: Project identifier * -* Maps a user-namespace uid pair into a kernel internal kuid, -* and returns that kuid. +* Maps a user-namespace projid pair into a kernel internal kprojid, +* and returns that kprojid. * * When there is no mapping defined for the user-namespace projid * pair INVALID_PROJID is returned. Callers are expected to test
@@ -526,7 +526,7 @@ EXPORT_SYMBOL(from_kgid_munged);*/ kprojid_t make_kprojid (struct user_namespace *ns,projid_t projid) { -/* Map the uid to a global kernel uid */ +/* Map the projid to a global kernel projid */ return KPROJIDT_INIT (map_id_down (&ns->projid_map, projid)); }EXPORT_SYMBOL (make_kprojid);
@@ -545,7 +545,7 @@ EXPORT_SYMBOL(make_kprojid);*/ projid_t from_kprojid (struct user_namespace *targ,kprojid_t kprojid) { -/* Map the uid from a global kernel uid */ +/* Map the projid from a global kernel projid */ return map_id_up (&targ->projid_map,__kprojid_val (kprojid)); }EXPORT_SYMBOL (from_kprojid);
Signature · 1 line
2.17.2