summaryrefslogtreecommitdiffstats
path: root/fs/fuse/fuse_i.h
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@redhat.com>2018-10-15 15:43:06 +0200
committerMiklos Szeredi <mszeredi@redhat.com>2018-10-15 15:43:06 +0200
commit2f1e81965fd0f672c3246e751385cdfe8f86bbee (patch)
tree9115e10dd34d90216c9ca9812e64d00fc6eb391b /fs/fuse/fuse_i.h
parentedfa87281f4fa1b78a21f6db999935a2faa2f6b8 (diff)
downloadlinux-2f1e81965fd0f672c3246e751385cdfe8f86bbee.tar.bz2
fuse: allow fine grained attr cache invaldation
This patch adds the infrastructure for more fine grained attribute invalidation. Currently only 'atime' is invalidated separately. The use of this infrastructure is extended to the statx(2) interface, which for now means that if only 'atime' is invalid and STATX_ATIME is not specified in the mask argument, then no GETATTR request will be generated. Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/fuse/fuse_i.h')
-rw-r--r--fs/fuse/fuse_i.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/fuse/fuse_i.h b/fs/fuse/fuse_i.h
index b7d96e7b5e0f..0e32524e66bb 100644
--- a/fs/fuse/fuse_i.h
+++ b/fs/fuse/fuse_i.h
@@ -80,6 +80,9 @@ struct fuse_inode {
/** Time in jiffies until the file attributes are valid */
u64 i_time;
+ /* Which attributes are invalid */
+ u32 inval_mask;
+
/** The sticky bit in inode->i_mode may have been removed, so
preserve the original mode */
umode_t orig_i_mode;