Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753368AbbF2O7H (ORCPT ); Mon, 29 Jun 2015 10:59:07 -0400 Received: from resqmta-po-01v.sys.comcast.net ([96.114.154.160]:36333 "EHLO resqmta-po-01v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753226AbbF2O7B (ORCPT ); Mon, 29 Jun 2015 10:59:01 -0400 Date: Mon, 29 Jun 2015 09:50:48 -0500 (CDT) From: Christoph Lameter X-X-Sender: cl@east.gentwo.org To: "Kirill A. Shutemov" cc: Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, Hugh Dickins Subject: Re: [PATCH] mm: fix status code move_pages() returns for zero page In-Reply-To: <1435141428-98266-1-git-send-email-kirill.shutemov@linux.intel.com> Message-ID: References: <1435141428-98266-1-git-send-email-kirill.shutemov@linux.intel.com> Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 678 Lines: 18 On Wed, 24 Jun 2015, Kirill A. Shutemov wrote: > Man page for move_pages(2) specifies that status code for zero page is > supposed to be -EFAULT. Currently kernel return -ENOENT in this case. > > follow_page() can do it for us, if we would ask for FOLL_DUMP. FOLL_DUMP also has the consequence that the upper layer page tables pages are no longer allocated. Otherwise this looks ok. Reviewed-by: Christoph Lameter -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/