• Home
  • Raw
  • Download

Lines Matching refs:count

132 	refcount_set(&ns->ns.count, 1);  in create_user_ns()
222 } while (refcount_dec_and_test(&parent->ns.count)); in free_user_ns()
238 u32 count; /* == 0 unless used with map_id_range_down() */ member
251 id2 = key->id + key->count - 1; in cmp_map_id()
259 last = first + el->count - 1; in cmp_map_id()
276 map_id_range_down_max(unsigned extents, struct uid_gid_map *map, u32 id, u32 count) in map_id_range_down_max() argument
281 key.count = count; in map_id_range_down_max()
294 map_id_range_down_base(unsigned extents, struct uid_gid_map *map, u32 id, u32 count) in map_id_range_down_base() argument
299 id2 = id + count - 1; in map_id_range_down_base()
304 last = first + map->extent[idx].count - 1; in map_id_range_down_base()
312 static u32 map_id_range_down(struct uid_gid_map *map, u32 id, u32 count) in map_id_range_down() argument
319 extent = map_id_range_down_base(extents, map, id, count); in map_id_range_down()
321 extent = map_id_range_down_max(extents, map, id, count); in map_id_range_down()
351 last = first + map->extent[idx].count - 1; in map_id_up_base()
368 key.count = 1; in map_id_up_max()
615 extent->count); in uid_m_show()
636 extent->count); in gid_m_show()
657 extent->count); in projid_m_show()
739 upper_last = upper_first + extent->count - 1; in mappings_overlap()
740 lower_last = lower_first + extent->count - 1; in mappings_overlap()
754 prev_upper_last = prev_upper_first + prev->count - 1; in mappings_overlap()
755 prev_lower_last = prev_lower_first + prev->count - 1; in mappings_overlap()
921 size_t count, loff_t *ppos, in map_write() argument
935 if ((*ppos != 0) || (count >= PAGE_SIZE)) in map_write()
939 kbuf = memdup_user_nul(buf, count); in map_write()
1002 extent.count = simple_strtoul(pos, &pos, 10); in map_write()
1019 if ((extent.first + extent.count) <= extent.first) in map_write()
1021 if ((extent.lower_first + extent.count) <= in map_write()
1062 e->count); in map_write()
1092 *ppos = count; in map_write()
1093 ret = count; in map_write()
1172 if ((new_map->nr_extents == 1) && (new_map->extent[0].count == 1) && in new_idmap_permitted()
1214 size_t count, loff_t *ppos) in proc_setgroups_write() argument
1224 if ((*ppos != 0) || (count >= sizeof(kbuf))) in proc_setgroups_write()
1229 if (copy_from_user(kbuf, buf, count)) in proc_setgroups_write()
1231 kbuf[count] = '\0'; in proc_setgroups_write()
1271 *ppos = count; in proc_setgroups_write()
1272 ret = count; in proc_setgroups_write()