summaryrefslogtreecommitdiffstats
path: root/fs/fuse/dir.c
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@redhat.com>2018-10-01 10:07:04 +0200
committerMiklos Szeredi <mszeredi@redhat.com>2018-10-01 10:07:04 +0200
commit7118883b44b8edfea732aadeb0d4424da3f152b2 (patch)
treebded501b21b8493499fb0eda642fae6fdd2413b8 /fs/fuse/dir.c
parent3494927e090bf511e54eecaf33a8e56e5c0463db (diff)
downloadlinux-stable-7118883b44b8edfea732aadeb0d4424da3f152b2.tar.gz
linux-stable-7118883b44b8edfea732aadeb0d4424da3f152b2.tar.bz2
linux-stable-7118883b44b8edfea732aadeb0d4424da3f152b2.zip
fuse: use mtime for readdir cache verification
Store the modification time of the directory in the cache, obtained before starting to fill the cache. When reading the cache, verify that the directory hasn't changed, by checking if current modification time is the same as the one stored in the cache. This only needs to be done when the current file position is at the beginning of the directory, as mandated by POSIX. Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/fuse/dir.c')
0 files changed, 0 insertions, 0 deletions