Home
last modified time | relevance | path

Searched refs:ucounts (Results 1 – 12 of 12) sorted by relevance

/linux-4.19.296/fs/notify/inotify/
Dinotify.h48 static inline void dec_inotify_instances(struct ucounts *ucounts) in dec_inotify_instances() argument
50 dec_ucount(ucounts, UCOUNT_INOTIFY_INSTANCES); in dec_inotify_instances()
53 static inline struct ucounts *inc_inotify_watches(struct ucounts *ucounts) in inc_inotify_watches() argument
55 return inc_ucount(ucounts->ns, ucounts->uid, UCOUNT_INOTIFY_WATCHES); in inc_inotify_watches()
58 static inline void dec_inotify_watches(struct ucounts *ucounts) in dec_inotify_watches() argument
60 dec_ucount(ucounts, UCOUNT_INOTIFY_WATCHES); in dec_inotify_watches()
Dinotify_fsnotify.c185 if (group->inotify_data.ucounts) in inotify_free_group_priv()
186 dec_inotify_instances(group->inotify_data.ucounts); in inotify_free_group_priv()
Dinotify_user.c502 dec_inotify_watches(group->inotify_data.ucounts); in inotify_ignored_and_remove_idr()
585 if (!inc_inotify_watches(group->inotify_data.ucounts)) { in inotify_new_watch()
650 group->inotify_data.ucounts = inc_ucount(current_user_ns(), in inotify_new_group()
654 if (!group->inotify_data.ucounts) { in inotify_new_group()
/linux-4.19.296/include/linux/
Duser_namespace.h38 struct ucounts;
77 struct ucounts *ucounts; member
81 struct ucounts { struct
93 struct ucounts *inc_ucount(struct user_namespace *ns, kuid_t uid, enum ucount_type type); argument
94 void dec_ucount(struct ucounts *ucounts, enum ucount_type type);
Dutsname.h28 struct ucounts *ucounts; member
Dpid_namespace.h42 struct ucounts *ucounts; member
Dipc_namespace.h68 struct ucounts *ucounts; member
Dfsnotify_backend.h189 struct ucounts *ucounts; member
Dcgroup.h849 struct ucounts *ucounts; member
/linux-4.19.296/fs/
Dmount.h14 struct ucounts *ucounts; member
Dnamespace.c2832 static struct ucounts *inc_mnt_namespaces(struct user_namespace *ns) in inc_mnt_namespaces()
2837 static void dec_mnt_namespaces(struct ucounts *ucounts) in dec_mnt_namespaces() argument
2839 dec_ucount(ucounts, UCOUNT_MNT_NAMESPACES); in dec_mnt_namespaces()
2845 dec_mnt_namespaces(ns->ucounts); in free_mnt_ns()
2862 struct ucounts *ucounts; in alloc_mnt_ns() local
2865 ucounts = inc_mnt_namespaces(user_ns); in alloc_mnt_ns()
2866 if (!ucounts) in alloc_mnt_ns()
2871 dec_mnt_namespaces(ucounts); in alloc_mnt_ns()
2877 dec_mnt_namespaces(ucounts); in alloc_mnt_ns()
2888 new_ns->ucounts = ucounts; in alloc_mnt_ns()
/linux-4.19.296/include/net/
Dnet_namespace.h73 struct ucounts *ucounts; member