proc: introduce proc_create_net_single
authorChristoph Hellwig <hch@lst.de>
Fri, 13 Apr 2018 18:38:35 +0000 (20:38 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 16 May 2018 05:24:30 +0000 (07:24 +0200)
commit3617d9496cd92dcca4d0893191d95554590d8d9f
tree3054a4c965a42aa4375b08f92b111e1943cd41c5
parentc3506372277779fccbffee2475400fcd689d5738
proc: introduce proc_create_net_single

Variant of proc_create_data that directly take a seq_file show
callback and deals with network namespaces in ->open and ->release.
All callers of proc_create + single_open_net converted over, and
single_{open,release}_net are removed entirely.

Signed-off-by: Christoph Hellwig <hch@lst.de>
13 files changed:
fs/proc/proc_net.c
include/linux/proc_fs.h
include/linux/seq_file_net.h
net/can/bcm.c
net/can/proc.c
net/ipv4/fib_trie.c
net/ipv4/proc.c
net/ipv6/proc.c
net/ipv6/route.c
net/kcm/kcmproc.c
net/netfilter/ipvs/ip_vs_ctl.c
net/sctp/proc.c
net/xfrm/xfrm_proc.c