Lines Matching refs:projid
26 static inline projid_t __kprojid_val(kprojid_t projid) in __kprojid_val() argument
28 return projid.val; in __kprojid_val()
46 static inline bool projid_valid(kprojid_t projid) in projid_valid() argument
48 return !projid_eq(projid, INVALID_PROJID); in projid_valid()
53 extern kprojid_t make_kprojid(struct user_namespace *from, projid_t projid);
55 extern projid_t from_kprojid(struct user_namespace *to, kprojid_t projid);
56 extern projid_t from_kprojid_munged(struct user_namespace *to, kprojid_t projid);
58 static inline bool kprojid_has_mapping(struct user_namespace *ns, kprojid_t projid) in kprojid_has_mapping() argument
60 return from_kprojid(ns, projid) != (projid_t)-1; in kprojid_has_mapping()
65 static inline kprojid_t make_kprojid(struct user_namespace *from, projid_t projid) in make_kprojid() argument
67 return KPROJIDT_INIT(projid); in make_kprojid()
77 projid_t projid = from_kprojid(to, kprojid); in from_kprojid_munged() local
78 if (projid == (projid_t)-1) in from_kprojid_munged()
79 projid = OVERFLOW_PROJID; in from_kprojid_munged()
80 return projid; in from_kprojid_munged()
83 static inline bool kprojid_has_mapping(struct user_namespace *ns, kprojid_t projid) in kprojid_has_mapping() argument