From f27a386430cc7a27ebd06899d93310fb3bd4cee7 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 6 Jan 2015 19:51:03 +0100 Subject: journald: whenever we rotate a file, btrfs defrag it Our write pattern is quite awful for CoW file systems (btrfs...), as we keep updating file parts in the beginning of the file. This results in fragmented journal files. Hence: when rotating files, defragment them, since at that point we know that no further write accesses will be made. --- src/journal/journal-file.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/journal/journal-file.h') diff --git a/src/journal/journal-file.h b/src/journal/journal-file.h index b3a0679b9e..6812385e1e 100644 --- a/src/journal/journal-file.h +++ b/src/journal/journal-file.h @@ -73,6 +73,7 @@ typedef struct JournalFile { bool compress_xz:1; bool compress_lz4:1; bool seal:1; + bool defrag_on_close:1; bool tail_entry_monotonic_valid:1; -- cgit v1.2.3