Skip to content

Commit 95f41d8

Browse files
tititiou36ericvh
authored andcommitted
fs/9p: Fix a datatype used with V9FS_DIRECT_IO
The commit in Fixes has introduced some "enum p9_session_flags" values larger than a char. Such values are stored in "v9fs_session_info->flags" which is a char only. Turn it into an int so that the "enum p9_session_flags" values can fit in it. Fixes: 6deffc8 ("fs/9p: Add new mount modes") Signed-off-by: Christophe JAILLET <[email protected]> Reviewed-by: Dominique Martinet <[email protected]> Reviewed-by: Christian Schoenebeck <[email protected]> Signed-off-by: Eric Van Hensbergen <[email protected]>
1 parent 06c2afb commit 95f41d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/9p/v9fs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ enum p9_cache_bits {
108108

109109
struct v9fs_session_info {
110110
/* options */
111-
unsigned char flags;
111+
unsigned int flags;
112112
unsigned char nodev;
113113
unsigned short debug;
114114
unsigned int afid;

0 commit comments

Comments
 (0)