chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19a2bd8
)
journal: don't realign window twice
author
Lennart Poettering
<lennart@poettering.net>
Wed, 11 Jan 2012 02:55:24 +0000
(
03:55
+0100)
committer
Lennart Poettering
<lennart@poettering.net>
Wed, 11 Jan 2012 02:55:24 +0000
(
03:55
+0100)
src/journal/journal-file.c
patch
|
blob
|
history
diff --git
a/src/journal/journal-file.c
b/src/journal/journal-file.c
index 7ce6337578d219070dfa1f7738adec3153d78b9f..419e15e46fa583c36c808720c2d3e1281e038e10 100644
(file)
--- a/
src/journal/journal-file.c
+++ b/
src/journal/journal-file.c
@@
-330,7
+330,7
@@
static int journal_file_move_to(JournalFile *f, int wt, uint64_t offset, uint64_
* the window space before and half behind the
* requested mapping */
- delta =
PAGE_ALIGN((DEFAULT_WINDOW_SIZE - size) / 2)
;
+ delta =
(DEFAULT_WINDOW_SIZE - size) / 2
;
if (delta > offset)
delta = offset;
@@
-341,7
+341,7
@@
static int journal_file_move_to(JournalFile *f, int wt, uint64_t offset, uint64_
delta = 0;
if (offset + size > (uint64_t) f->last_stat.st_size)
- size =
PAGE_ALIGN((uint64_t) f->last_stat.st_size - offset)
;
+ size =
(uint64_t) f->last_stat.st_size - offset
;
if (size <= 0)
return -EADDRNOTAVAIL;