kernfs: add exportfs operations
authorShaohua Li <shli@fb.com>
Wed, 12 Jul 2017 18:49:51 +0000 (11:49 -0700)
committerJens Axboe <axboe@kernel.dk>
Sat, 29 Jul 2017 15:00:03 +0000 (09:00 -0600)
commitaa8188253474b4053bc2900d9fcb545ce68bdf5c
tree7d7afd563e9f2cd46cf8c0a0299aab42fcf764e9
parentc53cd490b1a491ebf1d8e30da97e7231459a4208
kernfs: add exportfs operations

Now we have the facilities to implement exportfs operations. The idea is
cgroup can export the fhandle info to userspace, then userspace uses
fhandle to find the cgroup name. Another example is userspace can get
fhandle for a cgroup and BPF uses the fhandle to filter info for the
cgroup.

Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Shaohua Li <shli@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/kernfs/mount.c
include/linux/kernfs.h
kernel/cgroup/cgroup.c