From 99fa484726ee3a918c33ec3790edb876ac87f3e8 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Sat, 21 May 2016 21:08:03 +0200 Subject: [PATCH] clarify comment about linux kernel versions currently, ALL linux kernels are affected. --- borg/_chunker.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/borg/_chunker.c b/borg/_chunker.c index 7f772ca4b..3705a3d69 100644 --- a/borg/_chunker.c +++ b/borg/_chunker.c @@ -196,10 +196,10 @@ chunker_fill(Chunker *c) // We rollback the initial offset back to the start of the page, // to avoid it not being truncated as a partial page request. if (length > 0) { - // Linux kernels prior to 4.7 have a bug where they truncate - // last partial page of POSIX_FADV_DONTNEED request, so we need - // to page-align it ourselves. We'll need the rest of this page - // on the next read (assuming this was not EOF) + // All Linux kernels (at least up to and including 4.6(.0)) have a bug where + // they truncate last partial page of POSIX_FADV_DONTNEED request, so we need + // to page-align it ourselves. We'll need the rest of this page on the next + // read (assuming this was not EOF). overshoot = (offset + length) & pagemask; } else { // For length == 0 we set overshoot 0, so the below