summaryrefslogtreecommitdiffstats
path: root/fs/init.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2020-07-22 11:11:45 +0200
committerChristoph Hellwig <hch@lst.de>2020-07-31 08:17:52 +0200
commit20cce026c3e0972017b9cb4a7cccfb8cacf187d5 (patch)
treed3e48d9708b1864d9c4dc8addefd3340699120e8 /fs/init.c
parent8fb9f73e5a539ab3aa4785f30fb52c65fa98600c (diff)
downloadlinux-20cce026c3e0972017b9cb4a7cccfb8cacf187d5.tar.gz
linux-20cce026c3e0972017b9cb4a7cccfb8cacf187d5.tar.bz2
linux-20cce026c3e0972017b9cb4a7cccfb8cacf187d5.zip
init: add an init_rmdir helper
Add a simple helper to rmdir with a kernel space file name and switch the early init code over to it. Remove the now unused ksys_rmdir. Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/init.c')
-rw-r--r--fs/init.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/init.c b/fs/init.c
index 507ffbb5d146..eabd9ed2b510 100644
--- a/fs/init.c
+++ b/fs/init.c
@@ -42,3 +42,8 @@ int __init init_unlink(const char *pathname)
{
return do_unlinkat(AT_FDCWD, getname_kernel(pathname));
}
+
+int __init init_rmdir(const char *pathname)
+{
+ return do_rmdir(AT_FDCWD, getname_kernel(pathname));
+}