summaryrefslogtreecommitdiff
path: root/fs/cachefiles/Makefile
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2021-11-17 19:11:07 +0300
committerDavid Howells <dhowells@redhat.com>2022-01-07 16:42:24 +0300
commit72b957856b0c09eee542afcff29705dd0adda654 (patch)
tree2d341270872b1fb0c0e1e3b671d09bc28630fe9e /fs/cachefiles/Makefile
parent5d439467b802f5c6393b20d57662500dfb177c8f (diff)
downloadlinux-72b957856b0c09eee542afcff29705dd0adda654.tar.xz
cachefiles: Implement metadata/coherency data storage in xattrs
Use an xattr on each backing file in the cache to store some metadata, such as the content type and the coherency data. Five content types are defined: (0) No content stored. (1) The file contains a single monolithic blob and must be all or nothing. This would be used for something like an AFS directory or a symlink. (2) The file is populated with content completely up to a point with nothing beyond that. (3) The file has a map attached and is sparsely populated. This would be stored in one or more additional xattrs. (4) The file is dirty, being in the process of local modification and the contents are not necessarily represented correctly by the metadata. The file should be deleted if this is seen on binding. Signed-off-by: David Howells <dhowells@redhat.com> Reviewed-by: Jeff Layton <jlayton@kernel.org> cc: linux-cachefs@redhat.com Link: https://lore.kernel.org/r/163819641320.215744.16346770087799536862.stgit@warthog.procyon.org.uk/ # v1 Link: https://lore.kernel.org/r/163906942248.143852.5423738045012094252.stgit@warthog.procyon.org.uk/ # v2 Link: https://lore.kernel.org/r/163967151734.1823006.9301249989443622576.stgit@warthog.procyon.org.uk/ # v3 Link: https://lore.kernel.org/r/164021550471.640689.553853918307994335.stgit@warthog.procyon.org.uk/ # v4
Diffstat (limited to 'fs/cachefiles/Makefile')
-rw-r--r--fs/cachefiles/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/cachefiles/Makefile b/fs/cachefiles/Makefile
index 6f025940a65c..cb7a6bcf51eb 100644
--- a/fs/cachefiles/Makefile
+++ b/fs/cachefiles/Makefile
@@ -11,7 +11,8 @@ cachefiles-y := \
main.o \
namei.o \
security.o \
- volume.o
+ volume.o \
+ xattr.o
cachefiles-$(CONFIG_CACHEFILES_ERROR_INJECTION) += error_inject.o