mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-10-31 08:44:41 +00:00 
			
		
		
		
	mm/mmap: fix comment of unmapped_area{_topdown}
The low_limit of unmapped area information is inclusive, and the
hight_limit is not, so make symbol to be [ instead of (.
And replace hight_limit to high_limit.
Link: https://lkml.kernel.org/r/20230111132036.801404-1-vernon2gm@gmail.com
Fixes: 3499a13168 ("mm/mmap: use maple tree for unmapped_area{_topdown}")
Signed-off-by: Vernon Yang <vernon2gm@gmail.com>
Cc: Liam R. Howlett <Liam.Howlett@oracle.com>
Cc: Matthew Wilcox <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
			
			
This commit is contained in:
		
							parent
							
								
									f942b0f052
								
							
						
					
					
						commit
						82b249361f
					
				
					 1 changed files with 5 additions and 5 deletions
				
			
		
							
								
								
									
										10
									
								
								mm/mmap.c
									
										
									
									
									
								
							
							
						
						
									
										10
									
								
								mm/mmap.c
									
										
									
									
									
								
							|  | @ -1558,8 +1558,8 @@ static inline int accountable_mapping(struct file *file, vm_flags_t vm_flags) | |||
|  * the correct alignment and offset, all from @info. Note: current->mm is used | ||||
|  * for the search. | ||||
|  * | ||||
|  * @info: The unmapped area information including the range (low_limit - | ||||
|  * hight_limit), the alignment offset and mask. | ||||
|  * @info: The unmapped area information including the range [low_limit - | ||||
|  * high_limit), the alignment offset and mask. | ||||
|  * | ||||
|  * Return: A memory address or -ENOMEM. | ||||
|  */ | ||||
|  | @ -1585,11 +1585,11 @@ static unsigned long unmapped_area(struct vm_unmapped_area_info *info) | |||
| 
 | ||||
| /**
 | ||||
|  * unmapped_area_topdown() - Find an area between the low_limit and the | ||||
|  * high_limit with * the correct alignment and offset at the highest available | ||||
|  * high_limit with the correct alignment and offset at the highest available | ||||
|  * address, all from @info. Note: current->mm is used for the search. | ||||
|  * | ||||
|  * @info: The unmapped area information including the range (low_limit - | ||||
|  * hight_limit), the alignment offset and mask. | ||||
|  * @info: The unmapped area information including the range [low_limit - | ||||
|  * high_limit), the alignment offset and mask. | ||||
|  * | ||||
|  * Return: A memory address or -ENOMEM. | ||||
|  */ | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Vernon Yang
						Vernon Yang