summaryrefslogtreecommitdiffstats
path: root/fs/fuse/readdir.c
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@redhat.com>2018-09-28 16:43:23 +0200
committerMiklos Szeredi <mszeredi@redhat.com>2018-09-28 16:43:23 +0200
commit6433b8998a21dc597002731c4ceb4144e856edc4 (patch)
tree2792ae01ee8dbbed39292d55e1c4b3e3db51272d /fs/fuse/readdir.c
parentfuse: split out readdir.c (diff)
downloadlinux-6433b8998a21dc597002731c4ceb4144e856edc4.tar.xz
linux-6433b8998a21dc597002731c4ceb4144e856edc4.zip
fuse: add FOPEN_CACHE_DIR
Add flag returned by OPENDIR request to allow kernel to cache directory contents in page cache. The effect of FOPEN_CACHE_DIR is twofold: a) if not already cached, it writes entries into the cache b) if already cached, it allows reading entries from the cache The FOPEN_KEEP_CACHE has the same effect as on regular files: unless this flag is given the cache is cleared upon completion of open. So FOPEN_KEEP_CACHE and FOPEN_KEEP_CACHE flags should be used together to make use of the directory caching facility introduced in the following patches. The FUSE_AUTO_INVAL_DATA flag returned in INIT reply also has the same affect on the directory cache as it has on data cache for regular files. Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/fuse/readdir.c')
0 files changed, 0 insertions, 0 deletions