From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756105AbdDGNG6 (ORCPT ); Fri, 7 Apr 2017 09:06:58 -0400 Received: from mx1.redhat.com ([209.132.183.28]:42748 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755388AbdDGNGt (ORCPT ); Fri, 7 Apr 2017 09:06:49 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 6EFC161B92 Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=riel@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com 6EFC161B92 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 To: "Huang, Ying" , Andrew Morton Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Dave Hansen , Hugh Dickins , Shaohua Li , Minchan Kim 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> Organization: Red Hat, Inc Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Fri, 07 Apr 2017 13:06:49 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.  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