public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
952ce47
)
filesys: not an optimization to look into
author
Alan Cox
<alan@linux.intel.com>
Tue, 19 Feb 2019 00:20:05 +0000
(
00:20
+0000)
committer
Alan Cox
<alan@linux.intel.com>
Tue, 19 Feb 2019 00:20:05 +0000
(
00:20
+0000)
Kernel/filesys.c
patch
|
blob
|
history
diff --git
a/Kernel/filesys.c
b/Kernel/filesys.c
index
52cb8bf
..
043871e
100644
(file)
--- a/
Kernel/filesys.c
+++ b/
Kernel/filesys.c
@@
-1321,7
+1321,11
@@
void magic(inoptr ino)
/* This is a helper function used by _unlink and _rename; it doesn't really
* belong here, but needs to be in common code as it's used from two different
- * syscall banks. */
+ * syscall banks.
+ *
+ * FIXME: this could be more efficient if we remembered which directory offset
+ * we found the node at lookup time
+ */
arg_t unlinki(inoptr ino, inoptr pino, char *fname)
{
if (getmode(ino) == MODE_R(F_DIR)) {