devtmpfs: refactor devtmpfsd()
authorChristoph Hellwig <hch@lst.de>
Wed, 22 Jul 2020 08:48:25 +0000 (10:48 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 31 Jul 2020 06:17:51 +0000 (08:17 +0200)
commitbcbacc4909f1b93242ba2894d0282c151c9d0e68
tree510b897f756f8c2e7b1f9c2bf6b3b32b119671b2
parente24ab0ef689de43649327f54cd1088f3dad25bb3
devtmpfs: refactor devtmpfsd()

Split the main worker loop into a separate function.  This allows
devtmpfsd_setup to be marked __init, which will allows us to call
__init routines for the setup work.  devtmpfѕ itself needs a __ref
marker for that to work, and a comment explaining why it works.

Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/base/devtmpfs.c