Skip to content

RFC pidfs: use maple tree

Christian Brauner linux-fsdevel 2 versions – In review

Get series with b4
b4 am [email protected] change-id 20241206-work-pidfs-maple_tree-b322ff5399b7

Versions newest first

  1. v2 RFC Latest2 patches 16 repliesIn review
  2. v1 RFC1 patch 5 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2maple_tree: make MT_FLAGS_LOCK_IRQ do somethinginclude/linux/maple_tree.h+14 -20 replies
2/2pidfs: use maple treefs/pidfs.c kernel/pid.c+48 -383 replies

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchMarek Szyprowski
1/2
2/2T-b

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

Read the v2 thread

Cover letter [PATCH RFC v2 0/2] pidfs: use maple tree

Hey,

Ok, I wanted to give this another try as I'd really like to rely on the maple tree supporting ULONG_MAX when BITS_PER_LONG is 64 as it makes things a lot simpler overall.

As Willy didn't want additional users relying on an external lock I made it so that we don't have to and can just use the mtree lock.

However, I need an irq safe variant which is why I added support for this into the maple tree.

This is pullable from
https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git work.pidfs.maple_tree

Thanks!
Christian

---
Christian Brauner (2):
maple_tree: make MT_FLAGS_LOCK_IRQ do something
pidfs: use maple tree

 fs/pidfs.c                 | 52 +++++++++++++++++++++++++++-------------------
 include/linux/maple_tree.h | 16 ++++++++++++--
 kernel/pid.c               | 34 +++++++++++++++---------------
 3 files changed, 62 insertions(+), 40 deletions(-)

---
base-commit: 963c8e506c6d4769d04fcb64d4bf783e4ef6093e
change-id: 20241206-work-pidfs-maple_tree-b322ff5399b7