memblock tests: remove 'cleared' from comment blocks
The tests in alloc_nid_api can now run either memblock_alloc_try_nid() or memblock_alloc_try_nid_raw(). The comment blocks for these tests should not refer to a 'cleared' region since that only applies to memblock_alloc_try_nid(). Remove 'cleared' from the comment blocks so that the comments are accurate for either memblock function. Signed-off-by: Rebecca Mckeever <remckee0@gmail.com> Signed-off-by: Mike Rapoport <rppt@linux.ibm.com> Link: https://lore.kernel.org/r/e8be24137e54e9f81a06af969ded82b319114d7a.1662264347.git.remckee0@gmail.com
This commit is contained in:
parent
dcd45ad2ad
commit
35e49953c3
@ -33,7 +33,7 @@ static inline void *run_memblock_alloc_try_nid(phys_addr_t size,
|
|||||||
* | |
|
* | |
|
||||||
* min_addr max_addr
|
* min_addr max_addr
|
||||||
*
|
*
|
||||||
* Expect to allocate a cleared region that ends at max_addr.
|
* Expect to allocate a region that ends at max_addr.
|
||||||
*/
|
*/
|
||||||
static int alloc_try_nid_top_down_simple_check(void)
|
static int alloc_try_nid_top_down_simple_check(void)
|
||||||
{
|
{
|
||||||
@ -87,7 +87,7 @@ static int alloc_try_nid_top_down_simple_check(void)
|
|||||||
* Aligned address
|
* Aligned address
|
||||||
* boundary
|
* boundary
|
||||||
*
|
*
|
||||||
* Expect to allocate a cleared, aligned region that ends before max_addr.
|
* Expect to allocate an aligned region that ends before max_addr.
|
||||||
*/
|
*/
|
||||||
static int alloc_try_nid_top_down_end_misaligned_check(void)
|
static int alloc_try_nid_top_down_end_misaligned_check(void)
|
||||||
{
|
{
|
||||||
@ -139,7 +139,7 @@ static int alloc_try_nid_top_down_end_misaligned_check(void)
|
|||||||
* | |
|
* | |
|
||||||
* min_addr max_addr
|
* min_addr max_addr
|
||||||
*
|
*
|
||||||
* Expect to allocate a cleared region that starts at min_addr and ends at
|
* Expect to allocate a region that starts at min_addr and ends at
|
||||||
* max_addr, given that min_addr is aligned.
|
* max_addr, given that min_addr is aligned.
|
||||||
*/
|
*/
|
||||||
static int alloc_try_nid_exact_address_generic_check(void)
|
static int alloc_try_nid_exact_address_generic_check(void)
|
||||||
@ -193,7 +193,7 @@ static int alloc_try_nid_exact_address_generic_check(void)
|
|||||||
* address |
|
* address |
|
||||||
* boundary min_add
|
* boundary min_add
|
||||||
*
|
*
|
||||||
* Expect to drop the lower limit and allocate a cleared memory region which
|
* Expect to drop the lower limit and allocate a memory region which
|
||||||
* ends at max_addr (if the address is aligned).
|
* ends at max_addr (if the address is aligned).
|
||||||
*/
|
*/
|
||||||
static int alloc_try_nid_top_down_narrow_range_check(void)
|
static int alloc_try_nid_top_down_narrow_range_check(void)
|
||||||
@ -641,7 +641,7 @@ static int alloc_try_nid_reserved_all_generic_check(void)
|
|||||||
/*
|
/*
|
||||||
* A test that tries to allocate a memory region, where max_addr is
|
* A test that tries to allocate a memory region, where max_addr is
|
||||||
* bigger than the end address of the available memory. Expect to allocate
|
* bigger than the end address of the available memory. Expect to allocate
|
||||||
* a cleared region that ends before the end of the memory.
|
* a region that ends before the end of the memory.
|
||||||
*/
|
*/
|
||||||
static int alloc_try_nid_top_down_cap_max_check(void)
|
static int alloc_try_nid_top_down_cap_max_check(void)
|
||||||
{
|
{
|
||||||
@ -680,7 +680,7 @@ static int alloc_try_nid_top_down_cap_max_check(void)
|
|||||||
/*
|
/*
|
||||||
* A test that tries to allocate a memory region, where min_addr is
|
* A test that tries to allocate a memory region, where min_addr is
|
||||||
* smaller than the start address of the available memory. Expect to allocate
|
* smaller than the start address of the available memory. Expect to allocate
|
||||||
* a cleared region that ends before the end of the memory.
|
* a region that ends before the end of the memory.
|
||||||
*/
|
*/
|
||||||
static int alloc_try_nid_top_down_cap_min_check(void)
|
static int alloc_try_nid_top_down_cap_min_check(void)
|
||||||
{
|
{
|
||||||
@ -728,7 +728,7 @@ static int alloc_try_nid_top_down_cap_min_check(void)
|
|||||||
* | |
|
* | |
|
||||||
* min_addr max_addr
|
* min_addr max_addr
|
||||||
*
|
*
|
||||||
* Expect to allocate a cleared region that ends before max_addr.
|
* Expect to allocate a region that ends before max_addr.
|
||||||
*/
|
*/
|
||||||
static int alloc_try_nid_bottom_up_simple_check(void)
|
static int alloc_try_nid_bottom_up_simple_check(void)
|
||||||
{
|
{
|
||||||
@ -782,7 +782,7 @@ static int alloc_try_nid_bottom_up_simple_check(void)
|
|||||||
* Aligned address
|
* Aligned address
|
||||||
* boundary
|
* boundary
|
||||||
*
|
*
|
||||||
* Expect to allocate a cleared, aligned region that ends before max_addr.
|
* Expect to allocate an aligned region that ends before max_addr.
|
||||||
*/
|
*/
|
||||||
static int alloc_try_nid_bottom_up_start_misaligned_check(void)
|
static int alloc_try_nid_bottom_up_start_misaligned_check(void)
|
||||||
{
|
{
|
||||||
@ -836,7 +836,7 @@ static int alloc_try_nid_bottom_up_start_misaligned_check(void)
|
|||||||
* |
|
* |
|
||||||
* min_add
|
* min_add
|
||||||
*
|
*
|
||||||
* Expect to drop the lower limit and allocate a cleared memory region which
|
* Expect to drop the lower limit and allocate a memory region which
|
||||||
* starts at the beginning of the available memory.
|
* starts at the beginning of the available memory.
|
||||||
*/
|
*/
|
||||||
static int alloc_try_nid_bottom_up_narrow_range_check(void)
|
static int alloc_try_nid_bottom_up_narrow_range_check(void)
|
||||||
@ -1019,7 +1019,7 @@ static int alloc_try_nid_bottom_up_reserved_no_space_check(void)
|
|||||||
/*
|
/*
|
||||||
* A test that tries to allocate a memory region, where max_addr is
|
* A test that tries to allocate a memory region, where max_addr is
|
||||||
* bigger than the end address of the available memory. Expect to allocate
|
* bigger than the end address of the available memory. Expect to allocate
|
||||||
* a cleared region that starts at the min_addr
|
* a region that starts at the min_addr.
|
||||||
*/
|
*/
|
||||||
static int alloc_try_nid_bottom_up_cap_max_check(void)
|
static int alloc_try_nid_bottom_up_cap_max_check(void)
|
||||||
{
|
{
|
||||||
@ -1058,7 +1058,7 @@ static int alloc_try_nid_bottom_up_cap_max_check(void)
|
|||||||
/*
|
/*
|
||||||
* A test that tries to allocate a memory region, where min_addr is
|
* A test that tries to allocate a memory region, where min_addr is
|
||||||
* smaller than the start address of the available memory. Expect to allocate
|
* smaller than the start address of the available memory. Expect to allocate
|
||||||
* a cleared region at the beginning of the available memory.
|
* a region at the beginning of the available memory.
|
||||||
*/
|
*/
|
||||||
static int alloc_try_nid_bottom_up_cap_min_check(void)
|
static int alloc_try_nid_bottom_up_cap_min_check(void)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user