diff options
Diffstat (limited to 'mm/vmalloc.c')
-rw-r--r-- | mm/vmalloc.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/mm/vmalloc.c b/mm/vmalloc.c index b52aeed3f58e..33603239560e 100644 --- a/mm/vmalloc.c +++ b/mm/vmalloc.c | |||
@@ -1786,6 +1786,13 @@ fail: | |||
1786 | * Allocate enough pages to cover @size from the page level | 1786 | * Allocate enough pages to cover @size from the page level |
1787 | * allocator with @gfp_mask flags. Map them into contiguous | 1787 | * allocator with @gfp_mask flags. Map them into contiguous |
1788 | * kernel virtual space, using a pagetable protection of @prot. | 1788 | * kernel virtual space, using a pagetable protection of @prot. |
1789 | * | ||
1790 | * Reclaim modifiers in @gfp_mask - __GFP_NORETRY, __GFP_REPEAT | ||
1791 | * and __GFP_NOFAIL are not supported | ||
1792 | * | ||
1793 | * Any use of gfp flags outside of GFP_KERNEL should be consulted | ||
1794 | * with mm people. | ||
1795 | * | ||
1789 | */ | 1796 | */ |
1790 | static void *__vmalloc_node(unsigned long size, unsigned long align, | 1797 | static void *__vmalloc_node(unsigned long size, unsigned long align, |
1791 | gfp_t gfp_mask, pgprot_t prot, | 1798 | gfp_t gfp_mask, pgprot_t prot, |
@@ -1802,7 +1809,7 @@ void *__vmalloc(unsigned long size, gfp_t gfp_mask, pgprot_t prot) | |||
1802 | } | 1809 | } |
1803 | EXPORT_SYMBOL(__vmalloc); | 1810 | EXPORT_SYMBOL(__vmalloc); |
1804 | 1811 | ||
1805 | static inline void *__vmalloc_node_flags(unsigned long size, | 1812 | void *__vmalloc_node_flags(unsigned long size, |
1806 | int node, gfp_t flags) | 1813 | int node, gfp_t flags) |
1807 | { | 1814 | { |
1808 | return __vmalloc_node(size, 1, flags, PAGE_KERNEL, | 1815 | return __vmalloc_node(size, 1, flags, PAGE_KERNEL, |