mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-02-02 00:00:03 +03:00
Enable caching of negative dentries
This commit is contained in:
parent
b5af93e90f
commit
648b871d3d
@ -113,8 +113,12 @@ static void bcachefs_fuse_lookup(fuse_req_t req, fuse_ino_t dir,
|
|||||||
|
|
||||||
inum = bch2_dirent_lookup(c, dir, &hash_info, &qstr);
|
inum = bch2_dirent_lookup(c, dir, &hash_info, &qstr);
|
||||||
if (!inum) {
|
if (!inum) {
|
||||||
ret = -ENOENT;
|
struct fuse_entry_param e = {
|
||||||
goto err;
|
.attr_timeout = DBL_MAX,
|
||||||
|
.entry_timeout = DBL_MAX,
|
||||||
|
};
|
||||||
|
fuse_reply_entry(req, &e);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = bch2_inode_find_by_inum(c, inum, &bi);
|
ret = bch2_inode_find_by_inum(c, inum, &bi);
|
||||||
|
Loading…
Reference in New Issue
Block a user