diff options
author | Tejun Heo <tj@kernel.org> | 2010-09-10 05:01:56 -0400 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2010-09-10 05:01:56 -0400 |
commit | 9329ba9704f6bd51a735982e0d4a3eed72c3294f (patch) | |
tree | 8524ba7a84d5306d6fde91552655b10b0d06da61 /mm/percpu.c | |
parent | 677243d7494d09bfa782425f063a6013de53c35b (diff) |
percpu: update comments to reflect that percpu allocations are always zero-filled
Signed-off-by: Tejun Heo <tj@kernel.org>
Reported-by: Stephane Eranian <eranian@google.com>
Diffstat (limited to 'mm/percpu.c')
-rw-r--r-- | mm/percpu.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/mm/percpu.c b/mm/percpu.c index 0cd4bf61012c..12dea33572bd 100644 --- a/mm/percpu.c +++ b/mm/percpu.c | |||
@@ -826,8 +826,8 @@ fail_unlock_mutex: | |||
826 | * @size: size of area to allocate in bytes | 826 | * @size: size of area to allocate in bytes |
827 | * @align: alignment of area (max PAGE_SIZE) | 827 | * @align: alignment of area (max PAGE_SIZE) |
828 | * | 828 | * |
829 | * Allocate percpu area of @size bytes aligned at @align. Might | 829 | * Allocate zero-filled percpu area of @size bytes aligned at @align. |
830 | * sleep. Might trigger writeouts. | 830 | * Might sleep. Might trigger writeouts. |
831 | * | 831 | * |
832 | * CONTEXT: | 832 | * CONTEXT: |
833 | * Does GFP_KERNEL allocation. | 833 | * Does GFP_KERNEL allocation. |
@@ -846,9 +846,10 @@ EXPORT_SYMBOL_GPL(__alloc_percpu); | |||
846 | * @size: size of area to allocate in bytes | 846 | * @size: size of area to allocate in bytes |
847 | * @align: alignment of area (max PAGE_SIZE) | 847 | * @align: alignment of area (max PAGE_SIZE) |
848 | * | 848 | * |
849 | * Allocate percpu area of @size bytes aligned at @align from reserved | 849 | * Allocate zero-filled percpu area of @size bytes aligned at @align |
850 | * percpu area if arch has set it up; otherwise, allocation is served | 850 | * from reserved percpu area if arch has set it up; otherwise, |
851 | * from the same dynamic area. Might sleep. Might trigger writeouts. | 851 | * allocation is served from the same dynamic area. Might sleep. |
852 | * Might trigger writeouts. | ||
852 | * | 853 | * |
853 | * CONTEXT: | 854 | * CONTEXT: |
854 | * Does GFP_KERNEL allocation. | 855 | * Does GFP_KERNEL allocation. |