aboutsummaryrefslogtreecommitdiffstats
path: root/fs/9p/v9fs.h
diff options
context:
space:
mode:
Diffstat (limited to 'fs/9p/v9fs.h')
-rw-r--r--fs/9p/v9fs.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/fs/9p/v9fs.h b/fs/9p/v9fs.h
index 7eb135cf60ca..804b3ef8feab 100644
--- a/fs/9p/v9fs.h
+++ b/fs/9p/v9fs.h
@@ -29,7 +29,7 @@
29struct v9fs_session_info { 29struct v9fs_session_info {
30 /* options */ 30 /* options */
31 unsigned int maxdata; 31 unsigned int maxdata;
32 unsigned char extended; /* set to 1 if we are using UNIX extensions */ 32 unsigned char flags; /* session flags */
33 unsigned char nodev; /* set to 1 if no disable device mapping */ 33 unsigned char nodev; /* set to 1 if no disable device mapping */
34 unsigned short debug; /* debug level */ 34 unsigned short debug; /* debug level */
35 unsigned int afid; /* authentication fid */ 35 unsigned int afid; /* authentication fid */
@@ -45,6 +45,11 @@ struct v9fs_session_info {
45 struct dentry *debugfs_dir; 45 struct dentry *debugfs_dir;
46}; 46};
47 47
48/* session flags */
49enum {
50 V9FS_EXTENDED,
51};
52
48/* possible values of ->cache */ 53/* possible values of ->cache */
49/* eventually support loose, tight, time, session, default always none */ 54/* eventually support loose, tight, time, session, default always none */
50enum { 55enum {
@@ -70,3 +75,8 @@ static inline struct v9fs_session_info *v9fs_inode2v9ses(struct inode *inode)
70{ 75{
71 return (inode->i_sb->s_fs_info); 76 return (inode->i_sb->s_fs_info);
72} 77}
78
79static inline int v9fs_extended(struct v9fs_session_info *v9ses)
80{
81 return v9ses->flags & V9FS_EXTENDED;
82}