diff --git a/src/add-ons/kernel/file_systems/reiserfs/kernel_interface.cpp b/src/add-ons/kernel/file_systems/reiserfs/kernel_interface.cpp index 21bae9ff72..e2b9dcdcc9 100644 --- a/src/add-ons/kernel/file_systems/reiserfs/kernel_interface.cpp +++ b/src/add-ons/kernel/file_systems/reiserfs/kernel_interface.cpp @@ -1,6 +1,6 @@ // kernel_interface.cpp // -// Copyright (c) 2003-2008, Ingo Weinhold (bonefish@cs.tu-berlin.de) +// Copyright (c) 2003-2010, Ingo Weinhold (bonefish@cs.tu-berlin.de) // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -19,6 +19,7 @@ // You can alternatively use *this file* under the terms of the the MIT // license included in this package. + #include #include @@ -32,6 +33,7 @@ #include #include +#include #include #include #include @@ -221,6 +223,12 @@ FUNCTION(("dir: (%Ld: %lu, %lu), entry: `%s'\n", dir->GetID(), dir->GetDirID(), } } + // add to the entry cache + if (error == B_OK) { + entry_cache_add(volume->GetID(), dir->GetID(), entryName, + *vnid); + } + RETURN_ERROR(error); }