• Home
  • Raw
  • Download

Lines Matching refs:count

132 	refcount_set(&ns->ns.count, 1);  in create_user_ns()
225 } while (refcount_dec_and_test(&parent->ns.count)); in free_user_ns()
241 u32 count; /* == 0 unless used with map_id_range_down() */ member
254 id2 = key->id + key->count - 1; in cmp_map_id()
262 last = first + el->count - 1; in cmp_map_id()
279 map_id_range_down_max(unsigned extents, struct uid_gid_map *map, u32 id, u32 count) in map_id_range_down_max() argument
284 key.count = count; in map_id_range_down_max()
297 map_id_range_down_base(unsigned extents, struct uid_gid_map *map, u32 id, u32 count) in map_id_range_down_base() argument
302 id2 = id + count - 1; in map_id_range_down_base()
307 last = first + map->extent[idx].count - 1; in map_id_range_down_base()
315 static u32 map_id_range_down(struct uid_gid_map *map, u32 id, u32 count) in map_id_range_down() argument
322 extent = map_id_range_down_base(extents, map, id, count); in map_id_range_down()
324 extent = map_id_range_down_max(extents, map, id, count); in map_id_range_down()
354 last = first + map->extent[idx].count - 1; in map_id_up_base()
371 key.count = 1; in map_id_up_max()
618 extent->count); in uid_m_show()
639 extent->count); in gid_m_show()
660 extent->count); in projid_m_show()
742 upper_last = upper_first + extent->count - 1; in mappings_overlap()
743 lower_last = lower_first + extent->count - 1; in mappings_overlap()
757 prev_upper_last = prev_upper_first + prev->count - 1; in mappings_overlap()
758 prev_lower_last = prev_lower_first + prev->count - 1; in mappings_overlap()
923 size_t count, loff_t *ppos, in map_write() argument
937 if ((*ppos != 0) || (count >= PAGE_SIZE)) in map_write()
941 kbuf = memdup_user_nul(buf, count); in map_write()
1004 extent.count = simple_strtoul(pos, &pos, 10); in map_write()
1021 if ((extent.first + extent.count) <= extent.first) in map_write()
1023 if ((extent.lower_first + extent.count) <= in map_write()
1064 e->count); in map_write()
1094 *ppos = count; in map_write()
1095 ret = count; in map_write()
1174 if ((new_map->nr_extents == 1) && (new_map->extent[0].count == 1) && in new_idmap_permitted()
1216 size_t count, loff_t *ppos) in proc_setgroups_write() argument
1226 if ((*ppos != 0) || (count >= sizeof(kbuf))) in proc_setgroups_write()
1231 if (copy_from_user(kbuf, buf, count)) in proc_setgroups_write()
1233 kbuf[count] = '\0'; in proc_setgroups_write()
1273 *ppos = count; in proc_setgroups_write()
1274 ret = count; in proc_setgroups_write()