Skip to content

kernfs: add exportfs operations

Shaohua Li lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 16 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5kernfs: implement i_generationfs/kernfs/dir.c fs/kernfs/inode.c include/linux/kernfs.h+5 -04 replies
2/5kernfs: use idr instead of ida to manage inode numberfs/kernfs/dir.c include/linux/kernfs.h+13 -60 replies
3/5kernfs: add an API to get kernfs node from inode numberfs/kernfs/dir.c fs/kernfs/kernfs-internal.h fs/kernfs/mount.c+40 -10 replies
4/5kernfs: don't set dentry->d_fsdatafs/kernfs/dir.c fs/kernfs/file.c fs/kernfs/inode.c +3 more+18 -281 reply
5/5kernfs: add exportfs operationsfs/kernfs/mount.c+55 -08 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/5] kernfs: add exportfs operations

Hi,

The goal isn't to export kernfs to NFS. The intention is to make tracing cgroup aware. To do this, tracing will record an id for cgroup and use the id to find cgroup name later. The best id is the cgroup directory inode number. Further to filter out stale cgroup directory, fhandle is the best to identify a cgroup. So this is what this series try to do.

Thanks,
Shaohua

Shaohua Li (5):
kernfs: implement i_generation
kernfs: use idr instead of ida to manage inode number
kernfs: add an API to get kernfs node from inode number
kernfs: don't set dentry->d_fsdata
kernfs: add exportfs operations

 fs/kernfs/dir.c             | 76 +++++++++++++++++++++++++++++++++------------
 fs/kernfs/file.c            |  6 ++--
 fs/kernfs/inode.c           |  7 +++--
 fs/kernfs/kernfs-internal.h |  4 +++
 fs/kernfs/mount.c           | 67 ++++++++++++++++++++++++++++++++++-----
 fs/kernfs/symlink.c         |  2 +-
 include/linux/kernfs.h      |  4 ++-
 7 files changed, 131 insertions(+), 35 deletions(-)
Signature · 1 line
2.9.3