From 38fcfe6d944509d2f111f2204075f9d84f187a8d Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Wed, 5 Nov 2014 19:20:30 +0000 Subject: [PATCH] filesys/syscall2: optimise a few spots with staticfast --- Kernel/filesys.c | 4 ++-- Kernel/syscall_fs2.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Kernel/filesys.c b/Kernel/filesys.c index 324e9045..63d35beb 100644 --- a/Kernel/filesys.c +++ b/Kernel/filesys.c @@ -36,9 +36,9 @@ inoptr n_open(char *uname, inoptr *parent) inoptr kn_open(char *name, inoptr *parent) { - inoptr wd; /* the directory we are currently searching. */ + staticfast inoptr wd; /* the directory we are currently searching. */ register char *np = name; - inoptr ninode; + staticfast inoptr ninode; inoptr temp; #ifdef DEBUG diff --git a/Kernel/syscall_fs2.c b/Kernel/syscall_fs2.c index fe7d917c..24754461 100644 --- a/Kernel/syscall_fs2.c +++ b/Kernel/syscall_fs2.c @@ -408,9 +408,9 @@ int16_t _open(void) { int8_t uindex; int8_t oftindex; - inoptr ino; + staticfast inoptr ino; int16_t perm; - inoptr parent; + staticfast inoptr parent; char fname[FILENAME_LEN + 1]; int trunc; int r; -- 2.34.1