[RESEND] [PATCH] mm: Do not discard partial pages with POSIX_FADV_DONTNEED

2016-06-02 Thread green
From: Oleg Drokin I noticed that if the logic in fadvise64_64 syscall is incorrect for partial pages. While first page of the region is correctly skipped if it is partial, the last page of the region is mistakenly discarded. This leads to problems for applications that read data in non-page-align

[PATCH] mm: Do not discard partial pages with POSIX_FADV_DONTNEED

2016-04-15 Thread green
From: Oleg Drokin I noticed that the logic in fadvise64_64 syscall is incorrect for partial pages. While first page of the region is correctly skipped if it is partial, the last page of the region is mistakenly discarded. This leads to problems for applications that read data in non-page-aligned