Searched hist:"5 d7bc7e8" (Results 1 – 3 of 3) sorted by relevance
/openbmc/linux/fs/fuse/ |
H A D | readdir.c | 5d7bc7e8 Mon Oct 01 03:07:04 CDT 2018 Miklos Szeredi <mszeredi@redhat.com> fuse: allow using readdir cache
The cache is only used if it's completed, not while it's still being filled; this constraint could be lifted later, if it turns out to be useful.
Introduce state in struct fuse_file that indicates the position within the cache. After a seek, reset the position to the beginning of the cache and search the cache for the current position. If the current position is not found in the cache, then fall back to uncached readdir.
It can also happen that page(s) disappear from the cache, in which case we must also fall back to uncached readdir.
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com> 5d7bc7e8 Mon Oct 01 03:07:04 CDT 2018 Miklos Szeredi <mszeredi@redhat.com> fuse: allow using readdir cache The cache is only used if it's completed, not while it's still being filled; this constraint could be lifted later, if it turns out to be useful. Introduce state in struct fuse_file that indicates the position within the cache. After a seek, reset the position to the beginning of the cache and search the cache for the current position. If the current position is not found in the cache, then fall back to uncached readdir. It can also happen that page(s) disappear from the cache, in which case we must also fall back to uncached readdir. Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
|
H A D | fuse_i.h | 5d7bc7e8 Mon Oct 01 03:07:04 CDT 2018 Miklos Szeredi <mszeredi@redhat.com> fuse: allow using readdir cache
The cache is only used if it's completed, not while it's still being filled; this constraint could be lifted later, if it turns out to be useful.
Introduce state in struct fuse_file that indicates the position within the cache. After a seek, reset the position to the beginning of the cache and search the cache for the current position. If the current position is not found in the cache, then fall back to uncached readdir.
It can also happen that page(s) disappear from the cache, in which case we must also fall back to uncached readdir.
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
|
H A D | file.c | 5d7bc7e8 Mon Oct 01 03:07:04 CDT 2018 Miklos Szeredi <mszeredi@redhat.com> fuse: allow using readdir cache
The cache is only used if it's completed, not while it's still being filled; this constraint could be lifted later, if it turns out to be useful.
Introduce state in struct fuse_file that indicates the position within the cache. After a seek, reset the position to the beginning of the cache and search the cache for the current position. If the current position is not found in the cache, then fall back to uncached readdir.
It can also happen that page(s) disappear from the cache, in which case we must also fall back to uncached readdir.
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
|