* 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
| 1382 | * spa_max_ashift.) The raw tunable should not be used elsewhere. |
| 1383 | */ |
| 1384 | uint64_t |
| 1385 | spa_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 |
no outgoing calls
no test coverage detected