From 42a8b7614da0e0151b38e276b1cb6c6832126d50 Mon Sep 17 00:00:00 2001 From: Bernd Schubert Date: Tue, 11 Mar 2025 22:21:09 +0100 Subject: fuse_lowlevel: Simplify se->buf_reallocable se->buf_reallocable is true when reading /dev/fuse is handled from internal functions - we can set the variable in fuse_session_receive_buf_internal(). With that we also don't need to have it an _Atomic variable anymore. In _fuse_session_receive_buf() we can use "bool internal" to check if the buffer can be re-allocated. Signed-off-by: Bernd Schubert --- lib/fuse_i.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/fuse_i.h') diff --git a/lib/fuse_i.h b/lib/fuse_i.h index ee0d298..23fcaa6 100644 --- a/lib/fuse_i.h +++ b/lib/fuse_i.h @@ -82,7 +82,9 @@ struct fuse_session { * a later version, to 'fix' it at run time. */ struct libfuse_version version; - _Atomic bool buf_reallocable; + + /* true if reading requests from /dev/fuse are handled internally */ + bool buf_reallocable; }; struct fuse_chan { -- cgit v1.2.3