Skip to content

flex_arrays -> genradix; prep work for bcachefs

Kent Overstreet linux-doc linux-raid linux-security-module lkml selinux 1 version NAK

Status from this message: NAK, SCTP is still using flex_arrays,

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 14 repliesNAK

Patches in v1

#Subject and filesSizeRepliesApplied
1/6openvswitch: convert to kvmallocnet/openvswitch/flow.h net/openvswitch/flow_netlink.h net/openvswitch/flow_table.c +1 more+13 -431 reply
2/6md: convert to kvmallocdrivers/md/raid5-ppl.c drivers/md/raid5.c drivers/md/raid5.h+45 -532 replies
3/6selinux: convert to kvmallocsecurity/selinux/ss/avtab.c security/selinux/ss/avtab.h security/selinux/ss/conditional.c +3 more+62 -1443 replies
4/6Generic radix treesinclude/linux/generic-radix-tree.h lib/Makefile lib/generic-radix-tree.c+404 -11 reply
5/6proc: commit to genradixfs/proc/base.c+15 -280 replies
6/6Drop flex_arraysDocumentation/core-api/flexible-arrays.rst Documentation/flexible-arrays.txt include/linux/flex_array.h +4 more+1 -8078 replies

Reviews trailers per patch

2 of 6 patches have a Reviewed-by or Acked-by.

PatchDave HansenMatthew Wilcox
1/6R-b
2/6
3/6
4/6
5/6
6/6A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/6] flex_arrays -> genradix; prep work for bcachefs

Generic radix trees are a dead simple radix tree implementation that can store types of different sizes, needed for bcachefs.

The patch series was sent out previously and was pretty uncontroversial - this is a respin that converts most users to just use kvmalloc.

Kent Overstreet (6):
openvswitch: convert to kvmalloc
md: convert to kvmalloc
selinux: convert to kvmalloc
Generic radix trees
proc: commit to genradix
Drop flex_arrays

 Documentation/core-api/flexible-arrays.rst | 130 -------
 Documentation/flexible-arrays.txt          | 123 -------
 drivers/md/raid5-ppl.c                     |   7 +-
 drivers/md/raid5.c                         |  82 ++---
 drivers/md/raid5.h                         |   9 +-
 fs/proc/base.c                             |  43 +--
 include/linux/flex_array.h                 | 149 --------
 include/linux/generic-radix-tree.h         | 222 ++++++++++++
 include/linux/poison.h                     |   3 -
 lib/Makefile                               |   5 +-
 lib/flex_array.c                           | 398 ---------------------
 lib/generic-radix-tree.c                   | 180 ++++++++++
 net/openvswitch/flow.h                     |   1 -
 net/openvswitch/flow_netlink.h             |   1 -
 net/openvswitch/flow_table.c               |  51 +--
 net/openvswitch/flow_table.h               |   3 +-
 security/selinux/ss/avtab.c                |  40 +--
 security/selinux/ss/avtab.h                |   4 +-
 security/selinux/ss/conditional.c          |   6 +-
 security/selinux/ss/policydb.c             | 122 ++-----
 security/selinux/ss/policydb.h             |  12 +-
 security/selinux/ss/services.c             |  22 +-
 tools/include/linux/poison.h               |   3 -
 23 files changed, 540 insertions(+), 1076 deletions(-)
 delete mode 100644 Documentation/core-api/flexible-arrays.rst
 delete mode 100644 Documentation/flexible-arrays.txt
 delete mode 100644 include/linux/flex_array.h
 create mode 100644 include/linux/generic-radix-tree.h
 delete mode 100644 lib/flex_array.c
 create mode 100644 lib/generic-radix-tree.c
Signature · 1 line
2.19.0.rc2