fuse: Use the high bit of request ID for indicating resend requests
authorZhao Chen <winters.zc@antgroup.com>
Tue, 9 Jan 2024 09:24:43 +0000 (17:24 +0800)
committerMiklos Szeredi <mszeredi@redhat.com>
Wed, 6 Mar 2024 08:56:35 +0000 (09:56 +0100)
commit9e7f5296f475ba5ab887ae3e55b922e17e99752b
treeeb33e03ce83450e7168ab505a0437b1f2f19788a
parent760eac73f9f69aa28fcb3050b4946c2dcc656d12
fuse: Use the high bit of request ID for indicating resend requests

Some FUSE daemons want to know if the received request is a resend
request. The high bit of the fuse request ID is utilized for indicating
this, enabling the receiver to perform appropriate handling.

The init flag "FUSE_HAS_RESEND" is added to indicate this feature.

Signed-off-by: Zhao Chen <winters.zc@antgroup.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/fuse/dev.c
fs/fuse/inode.c
include/uapi/linux/fuse.h