Lines Matching refs:uc
75 let uc = if let Some(uc) = counts.get(&key) { in alloc_ucounts() localVariable
78 uc.clone() in alloc_ucounts()
92 counts.insert(key, uc.clone()); in alloc_ucounts()
93 uc in alloc_ucounts()
103 let uc = self.alloc_ucounts(user_ns, uid); in inc_ucounts() localVariable
104 let mut uc_iter = Some(uc.clone()); in inc_ucounts()
118 return Some(uc); in inc_ucounts()
127 fn get_ucounts(uc: Arc<UCounts>) { in get_ucounts()
130 user_ns: uc.ns.clone(), in get_ucounts()
131 uid: uc.uid, in get_ucounts()
133 counts.insert(ukey, uc); in get_ucounts()
136 pub fn dec_ucount(uc: Arc<UCounts>, ucount_type: Ucount) { in dec_ucount()
137 let mut uc_iter = Some(uc.clone()); in dec_ucount()
146 Self::put_ucounts(uc); in dec_ucount()
149 fn put_ucounts(uc: Arc<UCounts>) { in put_ucounts()
152 user_ns: uc.ns.clone(), in put_ucounts()
153 uid: uc.uid, in put_ucounts()