Skip to content

Commit

Permalink
Désactivation dcache le temps de le débugguer...
Browse files Browse the repository at this point in the history
Ref #235
  • Loading branch information
MaximeCheramy committed Jun 20, 2015
1 parent 5cd1732 commit ac60afb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions kernel/vfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,12 +173,13 @@ static int lookup(struct nameidata *nb) {
}
}

dentry = dcache_get(nb->mnt->instance, nb->dentry, name);
//dentry = dcache_get(nb->mnt->instance, nb->dentry, name);
dentry = NULL;
if (!dentry) {
dentry = nb->mnt->instance->lookup(nb->mnt->instance, nb->dentry, name);
if (dentry) {
dcache_set(nb->mnt->instance, nb->dentry, name, dentry);
}
//if (dentry) {
// dcache_set(nb->mnt->instance, nb->dentry, name, dentry);
//}
}
if (dentry) {
if (S_ISLNK(dentry->d_inode->i_mode) && !(*(nb->last) == '\0' && (nb->flags & LOOKUP_NOFOLLOW))) {
Expand Down

0 comments on commit ac60afb

Please sign in to comment.