Use single bit for struct fuse_file_info::no_interrupt
authorBernd Schubert <bernd@bsbernd.com>
Sat, 28 Dec 2024 12:43:58 +0000 (13:43 +0100)
committerBernd Schubert <bernd@bsbernd.com>
Mon, 30 Dec 2024 22:04:11 +0000 (23:04 +0100)
Now that we know the exact size of the integer we can
use a single bit and reserve the other bits.

Signed-off-by: Bernd Schubert <bernd@bsbernd.com>
include/fuse_common.h

index d9b7944a6fadebe3ad6cd90ae55619fef35c7547..ee3c4e60a5e16e74e2e553ca78fdcc60e0e911d7 100644 (file)
@@ -660,7 +660,10 @@ struct fuse_conn_info {
         * 2) Return ENOSYS for the reply of FUSE_INTERRUPT request to
         * inform the kernel not to send the FUSE_INTERRUPT request.
         */
-       uint32_t no_interrupt;
+       uint32_t no_interrupt : 1;
+
+       /* reserved bits for future use */
+       uint32_t padding : 31;
 
        /**
         * For future use.