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 <christophe.jaillet@wanadoo.fr> Reviewed-by: Dominique Martinet <asmadeus@codewreck.org> Reviewed-by: Christian Schoenebeck <linux_oss@crudebyte.com> Signed-off-by: Eric Van Hensbergen <ericvh@kernel.org>
1 parent 06c2afb commit 95f41d8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)