]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common/buffer: add hint to compiler 37005/head
authorKefu Chai <kchai@redhat.com>
Sat, 5 Sep 2020 13:37:37 +0000 (21:37 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 7 Sep 2020 15:22:43 +0000 (23:22 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/include/buffer.h

index 4df15cd4aae6a7927a2867667854fb675d671d5b..7e3c3d342338367074763ca350a6409597484085 100644 (file)
@@ -363,7 +363,7 @@ struct error_code;
     };
     struct disposer {
       void operator()(ptr_node* const delete_this) {
-       if (!dispose_if_hypercombined(delete_this)) {
+       if (!__builtin_expect(dispose_if_hypercombined(delete_this), 0)) {
          delete delete_this;
        }
       }