diff options
author | Latchesar Ionkov <lucho@ionkov.net> | 2007-10-17 15:31:07 -0400 |
---|---|---|
committer | Eric Van Hensbergen <ericvh@ericvh-desktop.austin.ibm.com> | 2007-10-17 15:31:07 -0400 |
commit | 2405669b253670467c5c4b4effd160881bf4fbb7 (patch) | |
tree | 4423f4c31fdffa5d7cdb3c16d89818217505f395 /fs/9p/v9fs.h | |
parent | a80d923e1321a7ed69a0918de37e39871bb536a0 (diff) |
9p: define session flags
Create more general flags field in the v9fs_session_info struct and move the
'extended' flag as a bit in the flags.
Signed-off-by: Latchesar Ionkov <lucho@ionkov.net>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
Diffstat (limited to 'fs/9p/v9fs.h')
-rw-r--r-- | fs/9p/v9fs.h | 12 |
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 @@ | |||
29 | struct v9fs_session_info { | 29 | struct 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 */ | ||
49 | enum { | ||
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 */ |
50 | enum { | 55 | enum { |
@@ -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 | |||
79 | static inline int v9fs_extended(struct v9fs_session_info *v9ses) | ||
80 | { | ||
81 | return v9ses->flags & V9FS_EXTENDED; | ||
82 | } | ||