Skip to content

Commit b4d4f1a

Browse files
committed
readdir: force inode cache to improve chunked read performance
1 parent 626961d commit b4d4f1a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/zdbfs.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,9 @@ static void zdbfs_fuse_readdir(fuse_req_t req, fuse_ino_t ino, size_t size, off_
279279
return;
280280
}
281281

282+
// force entry to be cached, speed up chunked access
283+
zdbfs_cache_add(req, ino, inode);
284+
282285
// fillin direntry with inode contents
283286
zdbfs_debug("[+] readdir: %lu: okay, fillin entries\n", ino);
284287
zdb_dir_t *dir = zdbfs_inode_dir_get(inode);

0 commit comments

Comments
 (0)