From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757401Ab0EMJts (ORCPT ); Thu, 13 May 2010 05:49:48 -0400 Received: from mail-px0-f174.google.com ([209.85.212.174]:53152 "EHLO mail-px0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751751Ab0EMJtp (ORCPT ); Thu, 13 May 2010 05:49:45 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=m+0en6pPU5pTMhk6mGNZ8vWwvWfRbNeyemG9WCfuS6jSvCt7c7ox/fwjg3qkoDIj+8 KhRG5Fi042hzf1A74Ai/uKHNLyCZwksgrFWsRqZc9TFYa+Y1AIfiJ9HKD+pNiTc7dXGU /bjljl9eZzz7+AuMIXiYCX1HhsyfA0dGKFV+U= From: Changli Gao To: akpm@linux-foundation.org Cc: Hoang-Nam Nguyen , Christoph Raisch , Roland Dreier , Sean Hefty , Hal Rosenstock , Divy Le Ray , "James E.J. Bottomley" , "Theodore Ts'o" , Andreas Dilger , Alexander Viro , Paul Menage , Li Zefan , linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-scsi@vger.kernel.org, linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, containers@lists.linux-foundation.org, Changli Gao Subject: [PATCH 0/9] mm: generic adaptive large memory allocation APIs Date: Thu, 13 May 2010 17:49:07 +0800 Message-Id: <1273744147-7594-1-git-send-email-xiaosuo@gmail.com> X-Mailer: git-send-email 1.6.4.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org generic adaptive large memory allocation APIs kv*alloc are used to allocate large contiguous memory and the users don't mind whether the memory is physically or virtually contiguous. The allocator always try its best to allocate physically contiguous memory first. In this patch set, some APIs are introduced: kvmalloc(), kvzalloc(), kvcalloc(), kvrealloc(), kvfree() and kvfree_inatomic(). Some code are converted to use the new generic APIs instead. Signed-off-by: Changli Gao ---- drivers/infiniband/hw/ehca/ipz_pt_fn.c | 22 +----- drivers/net/cxgb3/cxgb3_defs.h | 2 drivers/net/cxgb3/cxgb3_offload.c | 31 --------- drivers/net/cxgb3/l2t.c | 4 - drivers/net/cxgb4/cxgb4.h | 3 drivers/net/cxgb4/cxgb4_main.c | 37 +---------- drivers/net/cxgb4/l2t.c | 2 drivers/scsi/cxgb3i/cxgb3i_ddp.c | 12 +-- drivers/scsi/cxgb3i/cxgb3i_ddp.h | 26 ------- drivers/scsi/cxgb3i/cxgb3i_offload.c | 6 - fs/ext4/super.c | 21 +----- fs/file.c | 109 ++++----------------------------- include/linux/mm.h | 31 +++++++++ include/linux/vmalloc.h | 1 kernel/cgroup.c | 47 +------------- kernel/relay.c | 35 ---------- mm/nommu.c | 6 + mm/util.c | 104 +++++++++++++++++++++++++++++++ mm/vmalloc.c | 14 ++++ 19 files changed, 207 insertions(+), 306 deletions(-)