summaryrefslogtreecommitdiff
path: root/include/linux/init_syscalls.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-07-23 08:23:08 +0200
committerChristoph Hellwig <hch@lst.de>2020-07-31 08:17:51 +0200
commit09267defa36aaff6ff829bd2fc8b043ec151cc3e (patch)
tree112707b95369bc1db23f2b60c2f286135d7b69fe /include/linux/init_syscalls.h
parentc60166f04283ffba7b88b45d824bbfb2bfccee24 (diff)
init: add an init_umount helper
Like ksys_umount, but takes a kernel pointer for the destination path. Switch over the umount in the init code, which just happen to work due to the implicit set_fs(KERNEL_DS) during early init right now. Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'include/linux/init_syscalls.h')
-rw-r--r--include/linux/init_syscalls.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/init_syscalls.h b/include/linux/init_syscalls.h
index af9ea88a60e0..a5a2e7f19916 100644
--- a/include/linux/init_syscalls.h
+++ b/include/linux/init_syscalls.h
@@ -2,3 +2,4 @@
int __init init_mount(const char *dev_name, const char *dir_name,
const char *type_page, unsigned long flags, void *data_page);
+int __init init_umount(const char *name, int flags);