diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2023-04-25 08:47:27 +0200 |
---|---|---|
committer | Eric Van Hensbergen <ericvh@kernel.org> | 2023-07-10 13:04:37 +0000 |
commit | 95f41d87810083d8b3dedcce46a4e356cf4a9673 (patch) | |
tree | daed3737c45e0f8333b83fbb3957df1ccf18af5f /fs/9p | |
parent | 06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5 (diff) |
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>
Diffstat (limited to 'fs/9p')
-rw-r--r-- | fs/9p/v9fs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/9p/v9fs.h b/fs/9p/v9fs.h index 06a2514f0d88..698c43dd5dc8 100644 --- a/fs/9p/v9fs.h +++ b/fs/9p/v9fs.h @@ -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; |