diff options
Diffstat (limited to 'mm/vmalloc.c')
-rw-r--r-- | mm/vmalloc.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/mm/vmalloc.c b/mm/vmalloc.c index 2aad49981b57..c7ac8e1b3ac7 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c | |||
@@ -1975,9 +1975,7 @@ static int aligned_vwrite(char *buf, char *addr, unsigned long count) | |||
1975 | * IOREMAP area is treated as memory hole and no copy is done. | 1975 | * IOREMAP area is treated as memory hole and no copy is done. |
1976 | * | 1976 | * |
1977 | * If [addr...addr+count) doesn't includes any intersects with alive | 1977 | * If [addr...addr+count) doesn't includes any intersects with alive |
1978 | * vm_struct area, returns 0. | 1978 | * vm_struct area, returns 0. @buf should be kernel's buffer. |
1979 | * @buf should be kernel's buffer. Because this function uses KM_USER0, | ||
1980 | * the caller should guarantee KM_USER0 is not used. | ||
1981 | * | 1979 | * |
1982 | * Note: In usual ops, vread() is never necessary because the caller | 1980 | * Note: In usual ops, vread() is never necessary because the caller |
1983 | * should know vmalloc() area is valid and can use memcpy(). | 1981 | * should know vmalloc() area is valid and can use memcpy(). |
@@ -2051,9 +2049,7 @@ finished: | |||
2051 | * IOREMAP area is treated as memory hole and no copy is done. | 2049 | * IOREMAP area is treated as memory hole and no copy is done. |
2052 | * | 2050 | * |
2053 | * If [addr...addr+count) doesn't includes any intersects with alive | 2051 | * If [addr...addr+count) doesn't includes any intersects with alive |
2054 | * vm_struct area, returns 0. | 2052 | * vm_struct area, returns 0. @buf should be kernel's buffer. |
2055 | * @buf should be kernel's buffer. Because this function uses KM_USER0, | ||
2056 | * the caller should guarantee KM_USER0 is not used. | ||
2057 | * | 2053 | * |
2058 | * Note: In usual ops, vwrite() is never necessary because the caller | 2054 | * Note: In usual ops, vwrite() is never necessary because the caller |
2059 | * should know vmalloc() area is valid and can use memcpy(). | 2055 | * should know vmalloc() area is valid and can use memcpy(). |