Commit 95f41d87 authored by Christophe JAILLET's avatar Christophe JAILLET Committed by Eric Van Hensbergen

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: 6deffc89 ("fs/9p: Add new mount modes")
Signed-off-by: default avatarChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Reviewed-by: default avatarDominique Martinet <asmadeus@codewreck.org>
Reviewed-by: default avatarChristian Schoenebeck <linux_oss@crudebyte.com>
Signed-off-by: default avatarEric Van Hensbergen <ericvh@kernel.org>
parent 06c2afb8
......@@ -108,7 +108,7 @@ enum p9_cache_bits {
struct v9fs_session_info {
/* options */
unsigned char flags;
unsigned int flags;
unsigned char nodev;
unsigned short debug;
unsigned int afid;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment