VisionFive2 Linux kernel

StarFive Tech Linux Kernel for VisionFive (JH7110) boards (mirror)

More than 9999 Commits   32 Branches   54 Tags
author: Christoph Hellwig <hch@lst.de> 2020-07-23 08:23:40 +0200 committer: Christoph Hellwig <hch@lst.de> 2020-07-31 08:17:52 +0200 commit: 8fb9f73e5a539ab3aa4785f30fb52c65fa98600c parent: 09267defa36aaff6ff829bd2fc8b043ec151cc3e
Commit Summary:
init: add an init_unlink helper
Diffstat:
1 file changed, 4 insertions, 0 deletions
diff --git a/fs/init.c b/fs/init.c
index 9c8e31fdb048..507ffbb5d146 100644
--- a/fs/init.c
+++ b/fs/init.c
@@ -37,3 +37,8 @@ int __init init_umount(const char *name, int flags)
 		return ret;
 	return path_umount(&path, flags);
 }
+
+int __init init_unlink(const char *pathname)
+{
+	return do_unlinkat(AT_FDCWD, getname_kernel(pathname));
+}