]> git.baikalelectronics.ru Git - kernel.git/commit
fuse: don't invalidate attrs when not using atime
authorAndrew Gallagher <andrewjcg@fb.com>
Tue, 5 Nov 2013 11:55:43 +0000 (03:55 -0800)
committerMiklos Szeredi <mszeredi@suse.cz>
Wed, 22 Jan 2014 18:36:58 +0000 (19:36 +0100)
commitf84782170a7d175da1005322e2f8e89ab262e644
tree447f2e957ae82c8e3701bd7f9b127aef564bd4a2
parent71703b2c8e0bc0c5dde3748935d2d28f14eedde2
fuse: don't invalidate attrs when not using atime

Various read operations (e.g. readlink, readdir) invalidate the cached
attrs for atime changes.  This patch adds a new function
'fuse_invalidate_atime', which checks for a read-only super block and
avoids the attr invalidation in that case.

Signed-off-by: Andrew Gallagher <andrewjcg@fb.com>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
fs/fuse/dir.c
fs/fuse/file.c
fs/fuse/fuse_i.h