fuse: fix the io_uring flag processing in init reply
Subsystems (2)
PATCH 1/1 fuse: fix the io_uring flag processing in init reply
Fix the expression of the io_uring flag processing.
--- fs/fuse/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/fuse/inode.c +1 -1
@@ -1434,7 +1434,7 @@ static void process_init_reply(struct fuse_mount *fm, struct fuse_args *args,else ok = false; } -if (flags &FUSE_OVER_IO_URING &&fuse_uring_enabled ()) +if ((flags &FUSE_OVER_IO_URING ) &&fuse_uring_enabled ()) fc->io_uring =1 ;if (flags &FUSE_REQUEST_TIMEOUT )
Signature · 1 line
2.43.0
Quoted 23 lines · Feng Shuo
[You don't often get email from [email protected]. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
Fix the expression of the
io_uringflag processing.Signed-off-by Feng Shuo <[email protected]>--- fs/fuse/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)fs/fuse/inode.c +1
-2@@ -1434,7 +1434,7 @@ static void process_init_reply(struct fuse_mount *fm, struct fuse_args *args,else ok = false; } -if (flags &FUSE_OVER_IO_URING &&fuse_uring_enabled ()) +if ((flags &FUSE_OVER_IO_URING ) &&fuse_uring_enabled ()) fc->io_uring =1 ;if (flags &FUSE_REQUEST_TIMEOUT ) --
Quoted 1 line
2.43.0
Hi Shuo,
I don't think it is a 'fix', because the '&' operatpr has higher precedence, for readability you are definitely right.
Maybe something like
fuse: Add parentheses around bitwise operation in conditional
Add parentheses around the bitwise AND operation in the io_uring condition check for better readability.
With an updated commit message/subject:
Thanks,
Bernd
Thank you Bernd. I will send a new patch.
-- Feng Shuo
Quoted 49 lines · Bernd Schubert
Quoted 23 lines · Feng Shuo
[You don't often get email from [email protected]. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
Fix the expression of the
io_uringflag processing.Signed-off-by Feng Shuo <[email protected]>--- fs/fuse/inode.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)fs/fuse/inode.c +1
-2@@ -1434,7 +1434,7 @@ static void process_init_reply(struct fuse_mount *fm, struct fuse_args *args,else ok = false; } -if (flags &FUSE_OVER_IO_URING &&fuse_uring_enabled ()) +if ((flags &FUSE_OVER_IO_URING ) &&fuse_uring_enabled ()) fc->io_uring =1 ;if (flags &FUSE_REQUEST_TIMEOUT ) --Quoted 1 line
2.43.0
Hi Shuo,
I don't think it is a 'fix', because the '&' operatpr has higher precedence, for readability you are definitely right.
Maybe something like
fuse: Add parentheses around bitwise operation in conditional
Add parentheses around the bitwise AND operation in the
io_uringcondition check for better readability.With an updated commit message/subject:
Reviewed-by Bernd Schubert <[email protected]>Thanks,
Bernd