filesys/syscall2: optimise a few spots with staticfast
authorAlan Cox <alan@etchedpixels.co.uk>
Wed, 5 Nov 2014 19:20:30 +0000 (19:20 +0000)
committerAlan Cox <alan@etchedpixels.co.uk>
Wed, 5 Nov 2014 19:20:30 +0000 (19:20 +0000)
Kernel/filesys.c
Kernel/syscall_fs2.c

index 324e904..63d35be 100644 (file)
@@ -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
index fe7d917..2475446 100644 (file)
@@ -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;