Lines Matching full:forward
205 kfree(ns->gid_map.forward); in free_user_ns()
209 kfree(ns->uid_map.forward); in free_user_ns()
213 kfree(ns->projid_map.forward); in free_user_ns()
287 return bsearch(&key, map->forward, extents, in map_id_range_down_max()
678 return &map->forward[pos]; in m_start()
753 prev = &new_map->forward[idx]; in mappings_overlap()
783 struct uid_gid_extent *forward; in insert_extent() local
786 forward = kmalloc_array(UID_GID_MAP_MAX_EXTENTS, in insert_extent()
789 if (!forward) in insert_extent()
792 /* Copy over memory. Only set up memory for the forward pointer. in insert_extent()
795 memcpy(forward, map->extent, in insert_extent()
798 map->forward = forward; in insert_extent()
805 dest = &map->forward[map->nr_extents]; in insert_extent()
812 /* cmp function to sort() forward mappings */
851 /* Sort forward array. */ in sort_idmaps()
852 sort(map->forward, map->nr_extents, sizeof(struct uid_gid_extent), in sort_idmaps()
855 /* Only copy the memory from forward we actually need. */ in sort_idmaps()
856 map->reverse = kmemdup_array(map->forward, map->nr_extents, in sort_idmaps()
892 extent0 = &new_map->forward[idx]; in verify_root_map()
1060 e = &new_map.forward[idx]; in map_write()
1088 map->forward = new_map.forward; in map_write()
1098 kfree(new_map.forward); in map_write()
1100 map->forward = NULL; in map_write()