mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-24 01:09:38 -05:00
mm/vmalloc.c: fix the comment of find_vm_area
Fix the comment of find_vm_area() and get_vm_area() Signed-off-by: Hui Su <sh_def@163.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Reviewed-by: Andrew Morton <akpm@linux-foundation.org> Link: https://lkml.kernel.org/r/20200927153034.GA199877@rlk Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
82afbc32f2
commit
74640617e1
1 changed files with 2 additions and 2 deletions
|
@ -2133,7 +2133,7 @@ struct vm_struct *get_vm_area_caller(unsigned long size, unsigned long flags,
|
||||||
* It is up to the caller to do all required locking to keep the returned
|
* It is up to the caller to do all required locking to keep the returned
|
||||||
* pointer valid.
|
* pointer valid.
|
||||||
*
|
*
|
||||||
* Return: pointer to the found area or %NULL on faulure
|
* Return: the area descriptor on success or %NULL on failure.
|
||||||
*/
|
*/
|
||||||
struct vm_struct *find_vm_area(const void *addr)
|
struct vm_struct *find_vm_area(const void *addr)
|
||||||
{
|
{
|
||||||
|
@ -2154,7 +2154,7 @@ struct vm_struct *find_vm_area(const void *addr)
|
||||||
* This function returns the found VM area, but using it is NOT safe
|
* This function returns the found VM area, but using it is NOT safe
|
||||||
* on SMP machines, except for its size or flags.
|
* on SMP machines, except for its size or flags.
|
||||||
*
|
*
|
||||||
* Return: pointer to the found area or %NULL on faulure
|
* Return: the area descriptor on success or %NULL on failure.
|
||||||
*/
|
*/
|
||||||
struct vm_struct *remove_vm_area(const void *addr)
|
struct vm_struct *remove_vm_area(const void *addr)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue