diff --git a/mm/ksm.c b/mm/ksm.c index e180b41dd1c1..2760e5d3cafc 100644 --- a/mm/ksm.c +++ b/mm/ksm.c @@ -289,7 +289,8 @@ static inline struct rmap_item *alloc_rmap_item(void) { struct rmap_item *rmap_item; - rmap_item = kmem_cache_zalloc(rmap_item_cache, GFP_KERNEL); + rmap_item = kmem_cache_zalloc(rmap_item_cache, GFP_KERNEL | + __GFP_NORETRY | __GFP_NOWARN); if (rmap_item) ksm_rmap_items++; return rmap_item;