afs: simplify procfs code
authorChristoph Hellwig <hch@lst.de>
Fri, 13 Apr 2018 18:45:09 +0000 (20:45 +0200)
committerChristoph Hellwig <hch@lst.de>
Wed, 16 May 2018 05:24:30 +0000 (07:24 +0200)
commit353861cf05945002c3ddeb2519b0dc5f7bb765d5
tree433bc1a1445b6c1fef9aa62896df14d336350c3a
parentb8b1483d79550343a687cd4a2c7ff9c82889586f
afs: simplify procfs code

Use remove_proc_subtree to remove the whole subtree on cleanup, and
unwind the registration loop into individual calls.  Switch to use
proc_create_seq where applicable.

Signed-off-by: Christoph Hellwig <hch@lst.de>
fs/afs/proc.c