chiark / gitweb /
journal: simplify pre-allocation logic
authorLennart Poettering <lennart@poettering.net>
Wed, 27 Nov 2013 00:44:52 +0000 (01:44 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 27 Nov 2013 00:50:36 +0000 (01:50 +0100)
commiteda4b58b50509dc8ad0428a46e20f6c5cf516d58
tree76ed24af6deb8e978ba1f5255a960196e144e8fd
parentd0767ffd08bbb5c069e266710eb0462315e47e6d
journal: simplify pre-allocation logic

let's just do a single fallocate() as far as possible, and don't
distuingish between allocated space and file size.

This way we can save a syscall for each append, which makes quite some
benefits.
src/journal/journal-file.c