public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a466c2f
)
filesys: code review comments
author
Alan Cox
<alan@linux.intel.com>
Sat, 8 Jul 2017 13:43:50 +0000
(14:43 +0100)
committer
Alan Cox
<alan@linux.intel.com>
Sat, 8 Jul 2017 13:43:50 +0000
(14:43 +0100)
Kernel/filesys.c
patch
|
blob
|
history
diff --git
a/Kernel/filesys.c
b/Kernel/filesys.c
index
fe5b168
..
e1f0ce3
100644
(file)
--- a/
Kernel/filesys.c
+++ b/
Kernel/filesys.c
@@
-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;