]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: change 2 ObjectContext flags from bitfields to full variables 48597/head
authorRonen Friedman <rfriedma@redhat.com>
Sun, 23 Oct 2022 14:34:33 +0000 (17:34 +0300)
committerRonen Friedman <rfriedma@redhat.com>
Sun, 23 Oct 2022 14:38:56 +0000 (17:38 +0300)
The change does not increase the size of the structure. It does
simplify fmt-formatting of the boolean flags, and has better
performance.

Signed-off-by: Ronen Friedman <rfriedma@redhat.com>
src/osd/osd_internal_types.h

index 80ecb67a8892f281d186253edc68e5bd0e94c2a9..278aafc5798b195fc0cafb6cbd0ac43968c3e6e8 100644 (file)
@@ -180,9 +180,8 @@ public:
   }
 
   /// in-progress copyfrom ops for this object
-  bool blocked:1;
-  bool requeue_scrub_on_unblock:1;    // true if we need to requeue scrub on unblock
-
+  bool blocked;
+  bool requeue_scrub_on_unblock;    // true if we need to requeue scrub on unblock
 };
 
 inline std::ostream& operator<<(std::ostream& out, const ObjectState& obs)