Implemented a simple directory entry cache to speed up path resolution.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27366 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -846,6 +846,10 @@
|
||||
#define file_map_invalidate fssh_file_map_invalidate
|
||||
#define file_map_translate fssh_file_map_translate
|
||||
|
||||
/* entry cache */
|
||||
#define entry_cache_add fssh_entry_cache_add
|
||||
#define entry_cache_remove fssh_entry_cache_remove
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// #pragma mark - fssh_fs_index.h
|
||||
|
||||
|
||||
@@ -120,6 +120,13 @@ extern fssh_status_t fssh_file_map_translate(void *_map, fssh_off_t offset,
|
||||
fssh_size_t size, struct fssh_file_io_vec *vecs,
|
||||
fssh_size_t *_count, fssh_size_t align);
|
||||
|
||||
/* entry cache */
|
||||
extern fssh_status_t fssh_entry_cache_add(fssh_dev_t mountID,
|
||||
fssh_ino_t dirID, const char* name,
|
||||
fssh_ino_t nodeID);
|
||||
extern fssh_status_t fssh_entry_cache_remove(fssh_dev_t mountID,
|
||||
fssh_ino_t dirID, const char* name);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user