journal: introduce patch_min_use() helper
authorFranck Bui <fbui@suse.com>
Wed, 12 Oct 2016 07:58:10 +0000 (09:58 +0200)
committerFranck Bui <fbui@suse.com>
Wed, 19 Oct 2016 07:53:07 +0000 (09:53 +0200)
commit3a19f2150da1baae5af65f85864ff8df403a1aea
tree7130df0c426f27e8b7394b258fd145f3ca832a82
parenta0edc477bd80208596badb9bc147a0d0eb06fbf6
journal: introduce patch_min_use() helper

Updating min_use is rather an unusual operation that is limited when we first
open the journal files, therefore extracts it from determine_space_for() and
create a function of its own and call this new function when needed.

determine_space_for() is now dealing with storage space (cached) values only.

There should be no functional changes.
src/journal/journald-server.c
src/journal/journald-server.h
src/journal/journald.c