From 61a73f5f917d991ed7fa3ec4937527bb2a891d07 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Sat, 7 May 2016 18:18:40 +0200 Subject: [PATCH] _chunker.c: remove tab characters always use 4 spaces for indenting. --- borg/_chunker.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/borg/_chunker.c b/borg/_chunker.c index 0f9494e79..7f772ca4b 100644 --- a/borg/_chunker.c +++ b/borg/_chunker.c @@ -184,9 +184,9 @@ chunker_fill(Chunker *c) length = c->bytes_read - offset; #if ( ( _XOPEN_SOURCE >= 600 || _POSIX_C_SOURCE >= 200112L ) && defined(POSIX_FADV_DONTNEED) ) - // Only do it once per run. - if (pagemask == 0) - pagemask = getpagesize() - 1; + // Only do it once per run. + if (pagemask == 0) + pagemask = getpagesize() - 1; // We tell the OS that we do not need the data that we just have read any // more (that it maybe has in the cache). This avoids that we spoil the @@ -207,7 +207,7 @@ chunker_fill(Chunker *c) // fadvise. This will cancel the final page and is not part // of the above workaround. overshoot = 0; - } + } posix_fadvise(c->fh, offset & ~pagemask, length - overshoot, POSIX_FADV_DONTNEED); #endif