fs: refactor do_mount
authorChristoph Hellwig <hch@lst.de>
Thu, 4 Jun 2020 07:41:08 +0000 (09:41 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 31 Jul 2020 06:17:50 +0000 (08:17 +0200)
commita1e6aaa3743a3daa98d0f9275df8243eef8bb666
treed42f2ac68d300e0735000d301e351fa44ec85fdd
parent38b082236e77d403fed23ac2d30d570598744ec3
fs: refactor do_mount

Factor out a path_mount helper that takes a struct path * instead of the
actual file name.  This will allow to convert the init and devtmpfs code
to properly mount based on a kernel pointer instead of relying on the
implicit set_fs(KERNEL_DS) during early init.

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