]> git.ipfire.org Git - thirdparty/systemd.git/commit
journal: store counts, not byte sizes, in table size constants
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 30 Jul 2025 09:39:35 +0000 (11:39 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 30 Jul 2025 13:51:00 +0000 (15:51 +0200)
commitfbbcd0edefd2921b117eebfeab8eefc3d26bd0c2
treea46be62e077cea108ac788b988f648201327904e
parent58ecb72bcf5b2f25057d58fe52ce9717c0d07382
journal: store counts, not byte sizes, in table size constants

It's easier to think about the size in "objects", not bytes. Let's convert to
bytes at the last moment.

Also drop some of the pointless size suffixes. In general, it's the size of the
variable that matters, not the constant that is written to it.

No functional change.
src/libsystemd/sd-journal/journal-file.c