diff options
Diffstat (limited to 'fs/9p/v9fs.h')
-rw-r--r-- | fs/9p/v9fs.h | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/fs/9p/v9fs.h b/fs/9p/v9fs.h index 019f4ccb70c1..79000bf62491 100644 --- a/fs/9p/v9fs.h +++ b/fs/9p/v9fs.h | |||
@@ -23,7 +23,8 @@ | |||
23 | 23 | ||
24 | /** | 24 | /** |
25 | * enum p9_session_flags - option flags for each 9P session | 25 | * enum p9_session_flags - option flags for each 9P session |
26 | * @V9FS_EXTENDED: whether or not to use 9P2000.u extensions | 26 | * @V9FS_PROTO_2000U: whether or not to use 9P2000.u extensions |
27 | * @V9FS_PROTO_2010L: whether or not to use 9P2010.l extensions | ||
27 | * @V9FS_ACCESS_SINGLE: only the mounting user can access the hierarchy | 28 | * @V9FS_ACCESS_SINGLE: only the mounting user can access the hierarchy |
28 | * @V9FS_ACCESS_USER: a new attach will be issued for every user (default) | 29 | * @V9FS_ACCESS_USER: a new attach will be issued for every user (default) |
29 | * @V9FS_ACCESS_ANY: use a single attach for all users | 30 | * @V9FS_ACCESS_ANY: use a single attach for all users |
@@ -32,11 +33,12 @@ | |||
32 | * Session flags reflect options selected by users at mount time | 33 | * Session flags reflect options selected by users at mount time |
33 | */ | 34 | */ |
34 | enum p9_session_flags { | 35 | enum p9_session_flags { |
35 | V9FS_EXTENDED = 0x01, | 36 | V9FS_PROTO_2000U = 0x01, |
36 | V9FS_ACCESS_SINGLE = 0x02, | 37 | V9FS_PROTO_2010L = 0x02, |
37 | V9FS_ACCESS_USER = 0x04, | 38 | V9FS_ACCESS_SINGLE = 0x04, |
38 | V9FS_ACCESS_ANY = 0x06, | 39 | V9FS_ACCESS_USER = 0x08, |
39 | V9FS_ACCESS_MASK = 0x06, | 40 | V9FS_ACCESS_ANY = 0x0C, |
41 | V9FS_ACCESS_MASK = 0x0C, | ||
40 | }; | 42 | }; |
41 | 43 | ||
42 | /* possible values of ->cache */ | 44 | /* possible values of ->cache */ |
@@ -121,7 +123,12 @@ static inline struct v9fs_session_info *v9fs_inode2v9ses(struct inode *inode) | |||
121 | return (inode->i_sb->s_fs_info); | 123 | return (inode->i_sb->s_fs_info); |
122 | } | 124 | } |
123 | 125 | ||
124 | static inline int v9fs_extended(struct v9fs_session_info *v9ses) | 126 | static inline int v9fs_proto_dotu(struct v9fs_session_info *v9ses) |
125 | { | 127 | { |
126 | return v9ses->flags & V9FS_EXTENDED; | 128 | return v9ses->flags & V9FS_PROTO_2000U; |
129 | } | ||
130 | |||
131 | static inline int v9fs_proto_dotl(struct v9fs_session_info *v9ses) | ||
132 | { | ||
133 | return v9ses->flags & V9FS_PROTO_2010L; | ||
127 | } | 134 | } |