fs: refactor ksys_umount
authorChristoph Hellwig <hch@lst.de>
Tue, 21 Jul 2020 08:54:34 +0000 (10:54 +0200)
committerChristoph Hellwig <hch@lst.de>
Fri, 31 Jul 2020 06:17:50 +0000 (08:17 +0200)
commit41525f56e2564c2feff4fb2824823900efb3a39f
tree08020c3f2231ad8fede0970e1ebcf3c04fc4b5b8
parenta1e6aaa3743a3daa98d0f9275df8243eef8bb666
fs: refactor ksys_umount

Factor out a path_umount 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