diff options
author | Miklos Szeredi <mszeredi@redhat.com> | 2018-10-15 15:43:06 +0200 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2018-10-15 15:43:06 +0200 |
commit | 2f1e81965fd0f672c3246e751385cdfe8f86bbee (patch) | |
tree | 9115e10dd34d90216c9ca9812e64d00fc6eb391b /fs/fuse/fuse_i.h | |
parent | bitops: protect variables in bit_clear_unless() macro (diff) | |
download | linux-2f1e81965fd0f672c3246e751385cdfe8f86bbee.tar.xz linux-2f1e81965fd0f672c3246e751385cdfe8f86bbee.zip |
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.h | 3 |
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; |