diff options
author | Eric Van Hensbergen <ericvh@kernel.org> | 2022-12-18 18:03:54 +0000 |
---|---|---|
committer | Eric Van Hensbergen <ericvh@kernel.org> | 2023-03-27 02:33:48 +0000 |
commit | 46c30cb8f5393586c6ebc7b53a235c85bfac1de8 (patch) | |
tree | befff453b2718a866174a400009dfc9c09fe5b2b /include/net/9p | |
parent | 8142db4f2792717837b97e219e5f5203dde17abb (diff) | |
download | linux-stable-46c30cb8f5393586c6ebc7b53a235c85bfac1de8.tar.gz linux-stable-46c30cb8f5393586c6ebc7b53a235c85bfac1de8.tar.bz2 linux-stable-46c30cb8f5393586c6ebc7b53a235c85bfac1de8.zip |
9p: Add additional debug flags and open modes
Add some additional debug flags to assist with debugging
cache changes. Also add some additional open modes so we
can track cache state in fids more directly.
Signed-off-by: Eric Van Hensbergen <ericvh@kernel.org>
Diffstat (limited to 'include/net/9p')
-rw-r--r-- | include/net/9p/9p.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/net/9p/9p.h b/include/net/9p/9p.h index 429adf6be29c..60cad0d200a4 100644 --- a/include/net/9p/9p.h +++ b/include/net/9p/9p.h @@ -42,6 +42,8 @@ enum p9_debug_flags { P9_DEBUG_PKT = (1<<10), P9_DEBUG_FSC = (1<<11), P9_DEBUG_VPKT = (1<<12), + P9_DEBUG_CACHE = (1<<13), + P9_DEBUG_MMAP = (1<<14), }; #ifdef CONFIG_NET_9P_DEBUG @@ -213,6 +215,10 @@ enum p9_open_mode_t { P9_ORCLOSE = 0x40, P9_OAPPEND = 0x80, P9_OEXCL = 0x1000, + P9L_MODE_MASK = 0x1FFF, /* don't send anything under this to server */ + P9L_DIRECT = 0x2000, /* cache disabled */ + P9L_NOWRITECACHE = 0x4000, /* no write caching */ + P9L_LOOSE = 0x8000, /* loose cache */ }; /** |