mirror of
https://github.com/libfuse/libfuse.git
synced 2026-07-07 14:47:41 +08:00
fuse-io-uring: fix req_header_sz size calculation
The header buffer is described by "struct fuse_uring_req_header" rather than "struct fuse_ring_ent". Signed-off-by: Jingbo Xu <jefflexu@linux.alibaba.com>
This commit is contained in:
committed by
Bernd Schubert
parent
bad8b22c91
commit
a59ffa424f
+1
-1
@@ -760,7 +760,7 @@ static int fuse_uring_init_queue(struct fuse_ring_queue *queue)
|
||||
return res;
|
||||
}
|
||||
|
||||
queue->req_header_sz = ROUND_UP(sizeof(struct fuse_ring_ent),
|
||||
queue->req_header_sz = ROUND_UP(sizeof(struct fuse_uring_req_header),
|
||||
page_sz);
|
||||
|
||||
for (size_t idx = 0; idx < ring->queue_depth; idx++) {
|
||||
|
||||
Reference in New Issue
Block a user