summaryrefslogtreecommitdiffstats
path: root/init
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 /init
parent8fb9f73e5a539ab3aa4785f30fb52c65fa98600c (diff)
downloadlinux-stable-20cce026c3e0972017b9cb4a7cccfb8cacf187d5.tar.gz
linux-stable-20cce026c3e0972017b9cb4a7cccfb8cacf187d5.tar.bz2
linux-stable-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 'init')
-rw-r--r--init/initramfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/init/initramfs.c b/init/initramfs.c
index eb58cee6dadb..1a9159bf452f 100644
--- a/init/initramfs.c
+++ b/init/initramfs.c
@@ -300,7 +300,7 @@ static void __init clean_path(char *path, umode_t fmode)
if (!vfs_lstat(path, &st) && (st.mode ^ fmode) & S_IFMT) {
if (S_ISDIR(st.mode))
- ksys_rmdir(path);
+ init_rmdir(path);
else
init_unlink(path);
}