From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qt0-f199.google.com (mail-qt0-f199.google.com [209.85.216.199]) by kanga.kvack.org (Postfix) with ESMTP id 41DFA6B0397 for ; Fri, 7 Apr 2017 09:06:51 -0400 (EDT) Received: by mail-qt0-f199.google.com with SMTP id v3so4836602qtd.6 for ; Fri, 07 Apr 2017 06:06:51 -0700 (PDT) Received: from mx1.redhat.com (mx1.redhat.com. [209.132.183.28]) by mx.google.com with ESMTPS id n51si4768345qtb.26.2017.04.07.06.06.50 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Apr 2017 06:06:50 -0700 (PDT) Message-ID: <1491570407.8850.164.camel@redhat.com> Subject: Re: [PATCH -mm -v3] mm, swap: Use kvzalloc to allocate some swap data structure From: Rik van Riel Date: Fri, 07 Apr 2017 09:06:47 -0400 In-Reply-To: <20170407064911.25447-1-ying.huang@intel.com> References: <20170407064911.25447-1-ying.huang@intel.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: owner-linux-mm@kvack.org List-ID: To: "Huang, Ying" , Andrew Morton Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Dave Hansen , Hugh Dickins , Shaohua Li , Minchan Kim On Fri, 2017-04-07 at 14:49 +0800, Huang, Ying wrote: > From: Huang Ying > > Now vzalloc() is used in swap code to allocate various data > structures, such as swap cache, swap slots cache, cluster info, etc. > Because the size may be too large on some system, so that normal > kzalloc() may fail.A A But using kzalloc() has some advantages, > Signed-off-by: Huang Ying > Acked-by: Tim Chen > Acked-by: Michal Hocko > Cc: Dave Hansen > Cc: Hugh Dickins > Cc: Shaohua Li > Cc: Minchan Kim > Cc: Rik van Riel > Acked-by: Rik van Riel -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org