Home
last modified time | relevance | path

Searched refs:new_layout (Results 1 – 11 of 11) sorted by relevance

/linux-6.1.9/rust/alloc/
Dalloc.rs186 new_layout: Layout, in grow_impl()
190 new_layout.size() >= old_layout.size(), in grow_impl()
195 0 => self.alloc_impl(new_layout, zeroed), in grow_impl()
199 old_size if old_layout.align() == new_layout.align() => unsafe { in grow_impl()
200 let new_size = new_layout.size(); in grow_impl()
219 let new_ptr = self.alloc_impl(new_layout, zeroed)?; in grow_impl()
255 new_layout: Layout, in grow()
258 unsafe { self.grow_impl(ptr, old_layout, new_layout, false) } in grow()
266 new_layout: Layout, in grow_zeroed()
269 unsafe { self.grow_impl(ptr, old_layout, new_layout, true) } in grow_zeroed()
[all …]
Draw_vec.rs405 let new_layout = Layout::array::<T>(cap); in grow_amortized() localVariable
408 let ptr = finish_grow(new_layout, self.current_memory(), &mut self.alloc)?; in grow_amortized()
424 let new_layout = Layout::array::<T>(cap); in grow_exact() localVariable
427 let ptr = finish_grow(new_layout, self.current_memory(), &mut self.alloc)?; in grow_exact()
441 let new_layout = Layout::array::<T>(cap).unwrap_unchecked(); in shrink() localVariable
443 .shrink(ptr, layout, new_layout) in shrink()
444 .map_err(|_| AllocError { layout: new_layout, non_exhaustive: () })? in shrink()
457 new_layout: Result<Layout, LayoutError>, in finish_grow()
465 let new_layout = new_layout.map_err(|_| CapacityOverflow)?; in finish_grow() localVariable
467 alloc_guard(new_layout.size())?; in finish_grow()
[all …]
/linux-6.1.9/drivers/md/
Ddm-raid.c224 int new_layout; member
264 l->new_layout = mddev->new_layout; in rs_config_backup()
273 mddev->new_layout = l->new_layout; in rs_config_restore()
433 (rs_is_raid10(rs) && !__is_raid10_far(rs->md.new_layout)); in rs_is_reshapable()
715 mddev->new_layout = mddev->layout; in rs_set_cur()
728 mddev->layout = mddev->new_layout; in rs_set_new()
763 rs->md.new_layout = rs->md.layout; in raid_set_alloc()
1027 copies = raid10_md_layout_to_copies(rs->md.new_layout); in validate_raid_redundancy()
1051 if (__is_raid10_near(rs->md.new_layout)) { in validate_raid_redundancy()
1503 rs->md.new_layout = raid10_format_to_md_layout(rs, raid10_format, raid10_copies); in parse_raid_params()
[all …]
Dmd-faulty.c256 int mode = mddev->new_layout & ModeMask; in faulty_reshape()
257 int count = mddev->new_layout >> ModeShift; in faulty_reshape()
260 if (mddev->new_layout < 0) in faulty_reshape()
278 mddev->new_layout = -1; in faulty_reshape()
Draid5.c7448 && !algorithm_valid_raid5(mddev->new_layout)) || in setup_conf()
7450 && !algorithm_valid_raid6(mddev->new_layout))) { in setup_conf()
7452 mdname(mddev), mddev->new_layout); in setup_conf()
7620 conf->algorithm = mddev->new_layout; in setup_conf()
7858 BUG_ON(mddev->layout != mddev->new_layout); in raid5_run()
7981 mddev->new_layout); in raid5_run()
8421 mddev->new_layout == mddev->layout && in check_reshape()
8505 conf->algorithm = mddev->new_layout; in raid5_start_reshape()
8579 mddev->new_layout = conf->algorithm = conf->prev_algo; in raid5_start_reshape()
8711 mddev->new_layout = ALGORITHM_PARITY_N; in raid45_takeover_raid0()
[all …]
Draid0.c619 mddev->new_layout = 0; in raid0_takeover_raid45()
661 mddev->new_layout = 0; in raid0_takeover_raid10()
704 mddev->new_layout = 0; in raid0_takeover_raid1()
Dmd.c1302 mddev->new_layout = sb->new_layout; in super_90_validate()
1310 mddev->new_layout = mddev->layout; in super_90_validate()
1446 sb->new_layout = mddev->new_layout; in super_90_sync()
1838 mddev->new_layout = le32_to_cpu(sb->new_layout); in super_1_validate()
1849 mddev->new_layout = mddev->layout; in super_1_validate()
2017 sb->new_layout = cpu_to_le32(mddev->new_layout); in super_1_sync()
3975 mddev->new_layout = mddev->layout; in level_store()
3998 mddev->layout = mddev->new_layout; in level_store()
4093 mddev->layout != mddev->new_layout) in layout_show()
4095 mddev->new_layout, mddev->layout); in layout_show()
[all …]
Dmd.h366 int delta_disks, new_level, new_layout; member
Draid10.c3962 layout = mddev->new_layout; in setup_geo()
3969 layout = mddev->new_layout; in setup_geo()
4024 mdname(mddev), mddev->new_layout); in setup_conf()
4378 mddev->new_layout = (1<<8) + 2; in raid10_takeover_raid0()
5242 mddev->layout = mddev->new_layout; in raid10_finish_reshape()
Draid1.c3271 mddev->layout != mddev->new_layout || in raid1_reshape()
3274 mddev->new_layout = mddev->layout; in raid1_reshape()
3372 mddev->new_layout = 0; in raid1_takeover()
/linux-6.1.9/include/uapi/linux/raid/
Dmd_p.h185 __u32 new_layout; /* 16 new layout */ member
263 __le32 new_layout; /* new layout */ member