Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: 6deffc8924b5 ("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>

authored by

Christophe JAILLET and committed by
Eric Van Hensbergen
95f41d87 06c2afb8

+1 -1
+1 -1
fs/9p/v9fs.h
··· 108 108 109 109 struct v9fs_session_info { 110 110 /* options */ 111 - unsigned char flags; 111 + unsigned int flags; 112 112 unsigned char nodev; 113 113 unsigned short debug; 114 114 unsigned int afid;