From: Alan Cox Date: Sat, 8 Jul 2017 13:45:27 +0000 (+0100) Subject: filesys: we don't need to buffer the name on a tiny pure swap box X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=365d81d9bfa027a9d802975c9a29d91576fdf881;p=FUZIX.git filesys: we don't need to buffer the name on a tiny pure swap box --- diff --git a/Kernel/filesys.c b/Kernel/filesys.c index e1f0ce32..abfa451b 100644 --- a/Kernel/filesys.c +++ b/Kernel/filesys.c @@ -12,6 +12,8 @@ * FIXME: ENAMETOOLONG might be good to add */ +#ifndef CONFIG_LEVEL_0 + inoptr n_open(char *uname, inoptr *parent) { inoptr r; @@ -35,6 +37,7 @@ inoptr n_open(char *uname, inoptr *parent) return r; } +#endif inoptr kn_open(char *namep, inoptr *parent) { diff --git a/Kernel/include/kernel.h b/Kernel/include/kernel.h index 4ff5ea60..67b74770 100644 --- a/Kernel/include/kernel.h +++ b/Kernel/include/kernel.h @@ -782,7 +782,11 @@ extern int no_ioctl(uint8_t minor, uarg_t a, char *b); /* filesys.c */ /* open file, "name" in user address space */ +#ifndef CONFIG_LEVEL_0 extern inoptr n_open(char *uname, inoptr *parent); +#else +#define n_open kn_open +#endif /* open file, "name" in kernel address space */ extern inoptr kn_open(char *uname, inoptr *parent); extern inoptr i_open(uint16_t dev, uint16_t ino);