MCPcopy Create free account
hub / github.com/F-Stack/f-stack / spa_remove_max_segment

Function spa_remove_max_segment

freebsd/contrib/openzfs/module/zfs/vdev_removal.c:1384–1388  ·  view source on GitHub ↗

* The size of each removal mapping is limited by the tunable * zfs_remove_max_segment, but we must adjust this to be a multiple of the * pool's ashift, so that we don't try to split individual sectors regardless * of the tunable value. (Note that device removal requires that all devices * have the same ashift, so there's no difference between spa_min_ashift and * spa_max_ashift.) The raw tun

Source from the content-addressed store, hash-verified

1382 * spa_max_ashift.) The raw tunable should not be used elsewhere.
1383 */
1384uint64_t
1385spa_remove_max_segment(spa_t *spa)
1386{
1387 return (P2ROUNDUP(zfs_remove_max_segment, 1 << spa->spa_max_ashift));
1388}
1389
1390/*
1391 * The removal thread operates in open context. It iterates over all

Callers 2

spa_vdev_remove_threadFunction · 0.85
vdev_config_generateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected