summaryrefslogtreecommitdiffstats
path: root/fs/9p/v9fs.h
diff options
context:
space:
mode:
authorEric Van Hensbergen <ericvh@kernel.org>2022-12-08 03:40:37 +0100
committerEric Van Hensbergen <ericvh@kernel.org>2023-03-27 04:33:39 +0200
commitd9bc0d11e33bd7b6bfeedc570cd5738e5b4c7ca8 (patch)
treeb37a1976408102f8bf285272558f9e83d69955d6 /fs/9p/v9fs.h
parentLinux 6.3-rc1 (diff)
downloadlinux-d9bc0d11e33bd7b6bfeedc570cd5738e5b4c7ca8.tar.xz
linux-d9bc0d11e33bd7b6bfeedc570cd5738e5b4c7ca8.zip
fs/9p: Consolidate file operations and add readahead and writeback
We had 3 different sets of file operations across 2 different protocol variants differentiated by cache which really only changed 3 functions. But the real problem is that certain file modes, mount options, and other factors weren't being considered when we decided whether or not to use caches. This consolidates all the operations and switches to conditionals within a common set to decide whether or not to do different aspects of caching. Signed-off-by: Eric Van Hensbergen <ericvh@kernel.org> Reviewed-by: Dominique Martinet <asmadeus@codewreck.org>
Diffstat (limited to 'fs/9p/v9fs.h')
-rw-r--r--fs/9p/v9fs.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/9p/v9fs.h b/fs/9p/v9fs.h
index f3f74d197b5d..e5d41804b3cd 100644
--- a/fs/9p/v9fs.h
+++ b/fs/9p/v9fs.h
@@ -50,6 +50,8 @@ enum p9_session_flags {
enum p9_cache_modes {
CACHE_NONE,
+ CACHE_READAHEAD,
+ CACHE_WRITEBACK,
CACHE_MMAP,
CACHE_LOOSE,
CACHE_FSCACHE,