Skip to content

mm: generic adaptive large memory allocation APIs

Changli Gao containers linux-ext4 linux-fsdevel linux-mm linux-rdma linux-scsi lkml netdev 1 version NAK

Status from this message: NAK, I really utterly dislike that inatomic argument. The alloc side

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 of 9 patches 16 repliesNAK

5 of 9 patches are in this archive. The cover letter announces 9.

Patches in v1

#Subject and filesSizeRepliesApplied
1/9mm: add generic adaptive large memory allocation APIsinclude/linux/mm.h include/linux/vmalloc.h mm/nommu.c +2 more+156 -016 replies
2/9relay: use kvcalloc and kvfreekernel/relay.c+3 -320 replies
3/9cgroup: use kvmalloc, kvrealloc and kvfreekernel/cgroup.c+5 -420 replies
4/9file: use kvmalloc, kvfree and kvfree_inatomicfs/file.c+16 -930 replies
5/9ext4: use kvzalloc and kvfreefs/ext4/super.c+4 -170 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/9] mm: generic adaptive large memory allocation APIs

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.

----

 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(-)

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>