From: Zbigniew Jędrzejewski-Szmek Date: Mon, 19 Feb 2024 11:25:29 +0000 (+0100) Subject: logind: drop bitfield annotations X-Git-Tag: v256-rc1~802^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6169bb19a9daaab2652af2ac20a771c74c89b0dc;p=thirdparty%2Fsystemd.git logind: drop bitfield annotations As in other cases, this is simpler but better. pahole: - /* size: 336, cachelines: 6, members: 50 */ - /* sum members: 316, holes: 4, sum holes: 19 */ - /* sum bitfield members: 4 bits, bit holes: 1, sum bit holes: 4 bits */ - /* last cacheline: 16 bytes */ + /* size: 328, cachelines: 6, members: 50 */ + /* sum members: 320, holes: 3, sum holes: 8 */ + /* last cacheline: 8 bytes */ --- diff --git a/src/login/logind-session.h b/src/login/logind-session.h index b36d4221411..f344fb6a61d 100644 --- a/src/login/logind-session.h +++ b/src/login/logind-session.h @@ -135,16 +135,16 @@ struct Session { sd_event_source *fifo_event_source; sd_event_source *leader_pidfd_event_source; - bool idle_hint; - dual_timestamp idle_hint_timestamp; + bool in_gc_queue; + bool started; + bool stopping; - bool locked_hint; + bool was_active; - bool in_gc_queue:1; - bool started:1; - bool stopping:1; + bool locked_hint; - bool was_active:1; + bool idle_hint; + dual_timestamp idle_hint_timestamp; sd_bus_message *create_message; /* The D-Bus message used to create the session, which we haven't responded to yet */ sd_bus_message *upgrade_message; /* The D-Bus message used to upgrade the session class user-incomplete → user, which we haven't responded to yet */