filesys: code review comments
authorAlan Cox <alan@linux.intel.com>
Sat, 8 Jul 2017 13:43:50 +0000 (14:43 +0100)
committerAlan Cox <alan@linux.intel.com>
Sat, 8 Jul 2017 13:43:50 +0000 (14:43 +0100)
Kernel/filesys.c

index fe5b168..e1f0ce3 100644 (file)
@@ -89,10 +89,12 @@ inoptr kn_open(char *namep, inoptr *parent)
         }
 
         /* See if we are going up through a mount point */
+        /* FIXME: re-order for speed */
         if((wd == udata.u_root || (wd->c_num == ROOTINODE && wd->c_dev != root_dev)) &&
                 name[0] == '.' && name[1] == '.' &&
                 (name[2] == '/' || name[2] == '\0')){
             if (wd == udata.u_root) {
+                /* FIXME: is this assignment ever needed */
                 ninode = wd;
                 name += 2;
                 continue;