diff options
author | Bernd Schubert <bschubert@ddn.com> | 2025-03-11 22:21:09 +0100 |
---|---|---|
committer | Bernd Schubert <bernd@bsbernd.com> | 2025-03-14 12:58:14 +0100 |
commit | 1b86fe4c4de96daa4e766425193595f1c6b88a73 (patch) | |
tree | 1af3b7d46056532b928703bac44ea3810bbe3e61 /lib/fuse_i.h | |
parent | 065272a23392011ea1728c4f2d20e63cf6579e7d (diff) | |
download | libfuse-1b86fe4c4de96daa4e766425193595f1c6b88a73.tar.gz |
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 <bschubert@ddn.com>
Diffstat (limited to 'lib/fuse_i.h')
-rw-r--r-- | lib/fuse_i.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/fuse_i.h b/lib/fuse_i.h index 69ca159..bf8410f 100644 --- a/lib/fuse_i.h +++ b/lib/fuse_i.h @@ -79,7 +79,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 { |