The patch titled Subject: mm-fadvise-discard-partial-page-if-endbyte-is-also-eof-fix has been removed from the -mm tree. Its filename was mm-fadvise-discard-partial-page-if-endbyte-is-also-eof-fix.patch This patch was dropped because it was folded into mm-fadvise-discard-partial-page-if-endbyte-is-also-eof.patch ------------------------------------------------------ From: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Subject: mm-fadvise-discard-partial-page-if-endbyte-is-also-eof-fix tweak code comment Cc: Caspar Zhang <jinli.zjl@xxxxxxxxxxxxxxx> Cc: Mel Gorman <mgorman@xxxxxxxxxxxxxxxxxxx> Cc: Oliver Yang <zhiche.yy@xxxxxxxxxxxxxxx> Cc: shidao.ytt <shidao.ytt@xxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/fadvise.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff -puN mm/fadvise.c~mm-fadvise-discard-partial-page-if-endbyte-is-also-eof-fix mm/fadvise.c --- a/mm/fadvise.c~mm-fadvise-discard-partial-page-if-endbyte-is-also-eof-fix +++ a/mm/fadvise.c @@ -128,12 +128,11 @@ SYSCALL_DEFINE4(fadvise64_64, int, fd, l start_index = (offset+(PAGE_SIZE-1)) >> PAGE_SHIFT; end_index = (endbyte >> PAGE_SHIFT); /* - * page at end_index will be inclusively discarded according - * to invalidate_mapping_pages() implementation, thus, minus - * end_index by 1 means we would skip the last page. - * Yet, if endbyte is page-aligned, or it is at the end of - * file, we should not skip, discarding the last page is just - * safe enough. + * The page at end_index will be inclusively discarded according + * by invalidate_mapping_pages(), so subtracting 1 from + * end_index means we will skip the last page. But if endbyte + * is page aligned or is at the end of file, we should not skip + * that page - discarding the last page is safe enough. */ if ((endbyte & ~PAGE_MASK) != ~PAGE_MASK && endbyte != inode->i_size - 1) { _ Patches currently in -mm which might be from akpm@xxxxxxxxxxxxxxxxxxxx are include-linux-sched-mmh-uninline-mmdrop_async-etc.patch mm-fadvise-discard-partial-page-if-endbyte-is-also-eof.patch mm-page_owner-clean-up-init_pages_in_zone-v3-fix.patch tools-vm-new-option-to-specify-kpageflags-file-fix.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html