Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1302775ybl; Fri, 10 Jan 2020 15:57:48 -0800 (PST) X-Google-Smtp-Source: APXvYqzjJbITfLWaFFwfpc8yCloFxT6nrttHrQ+jXGpv+zPjoZdAL+tKSiBHriISBSjyFegd7UlX X-Received: by 2002:aca:54cc:: with SMTP id i195mr4311052oib.126.1578700668743; Fri, 10 Jan 2020 15:57:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578700668; cv=none; d=google.com; s=arc-20160816; b=jcsDCBdGViTssohTMP6DP7HibffLzH5ApWtfQO/0yY20VUw+XIg2cjg0LZjxeF2juA 4I3JnOua/5GS9raw5bhdvTHbzptXuU4RhYiGjd1R4Y5OVKSV3yHqcwP0x9lxn4UT9Zt3 STjinaqyrYo15cp9CNII9yfzLnh+SMGpgWZTZ9xkgh8pqZ/zYH+HSewyhlspJdAVfgHY 4wBvDYVwu9QOfJwQ3BUqBAYBL3uIirA/jHKFYquU4sN/YhXOqDNVGimrbvM4VY0xbtx4 47gfW9yBakHd/rCNof0qqUgIK0e9x8gz7tcOun6LbHyorc1efpRAi+zAr8IHy+kVZOYM 2klw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=IAXX3JDfW91L1oFBIls8QdCooR7SfK5C1si/SVwg03w=; b=YYAvrMxaQqIktDdNVVAKUiq6kogmMIkMDHWn7DU7kniSLb5fAkgHsk6vWnC4/AfhLn H6R4ZjT9UjuzZRv0PWPIrOyK6f74/cOlly8ZkCirnFG9soMvILpfaGKK8X4MMC960wfq 1nmdjs1gdvr7QlUu58Gy6kYYmFQpiNBR2gO5pBga2WCd+NIq3KcMDhKODpbO8TET3h4i xNP0g1lUUWGhrP5ZZEq8GWyMjg8WLVL13UKjip0SYSTfEII7eqQffPB6vGuaGZ4azlUI S60bo86xeyWChbF+t/coFcY9hJa7X+cnd9xduR8RE16Aoa/LviiCR7ZoUfTBd33JabyI V6vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=ZJEDO0YS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e1si2493298otj.276.2020.01.10.15.57.36; Fri, 10 Jan 2020 15:57:48 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@shutemov-name.20150623.gappssmtp.com header.s=20150623 header.b=ZJEDO0YS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727752AbgAJX4j (ORCPT + 99 others); Fri, 10 Jan 2020 18:56:39 -0500 Received: from mail-lj1-f195.google.com ([209.85.208.195]:42293 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727706AbgAJX4j (ORCPT ); Fri, 10 Jan 2020 18:56:39 -0500 Received: by mail-lj1-f195.google.com with SMTP id y4so3856261ljj.9 for ; Fri, 10 Jan 2020 15:56:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shutemov-name.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=IAXX3JDfW91L1oFBIls8QdCooR7SfK5C1si/SVwg03w=; b=ZJEDO0YSgA77ITGYIDctyb0EOae3X0E9DZsrCSD/137Q3wBqPH6xelTolj5I+N71/m 5okd9DsJlWyaN1rsC3T919/aHllzar6Pnp4CeoJCFftfC/HxvuIYfoOCgqcRVjx+4g1/ bQuCMoS5FuERQc0oHq+lqFBEPrMGhXsiZEb9NZl/XRJlIVzJKMYMZMa89dSO0w/8e5fp aJz4V0v9uMWruuU74+yNtL2YiDQ9r72yMWVR/x42Fu1X1yKuo+6ChgY0YVt9IdI8Qx72 rnZjO15pE/BaQphl6RgkxTalDUEhDYoyEKHlIOBfN4f2NlhTBpYsPzwBWvRguNWa8/ZP SLEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=IAXX3JDfW91L1oFBIls8QdCooR7SfK5C1si/SVwg03w=; b=mP+vTwIa0tjHjGIdERctetO3fPKKmDa+Q93P99nnPKfELuCB2LRJ8JhDfRGgVKDlyS b5sasf470HCgKfEBCkkBGzGLC4AJ+iCn6uHY8oR76801vsEhOPtM1IvnajlciEzn8MYT P/t3KX1oQhxql2InIyDEltdbLviQkFYJrikaxY/7QP9pE1DYVtrssr/tLUydlTZwqMVZ fbtQC/hRmGt/LuLEjMtyGipmdP4biBpjv1zeFVKtKQPm264lwsCSljXK+azwKCFR8vjZ qvqqjprFtSx2fdIRtG/8QKpiTBwF0j6ygpGAeSuCGZ1cpzopike4H9q91V/C6cfbE0Hc /h3Q== X-Gm-Message-State: APjAAAXg6ly3TOarHO7cY2Wnno3KEohiljOwvW3rSnZnjg9A/nxb1MB9 j0FUFOAyRYrtsOf56aFiH+hLB+MchrM= X-Received: by 2002:a2e:86c4:: with SMTP id n4mr4142551ljj.97.1578700597199; Fri, 10 Jan 2020 15:56:37 -0800 (PST) Received: from box.localdomain ([86.57.175.117]) by smtp.gmail.com with ESMTPSA id z5sm1673807lji.40.2020.01.10.15.56.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Jan 2020 15:56:36 -0800 (PST) Received: by box.localdomain (Postfix, from userid 1000) id 74CCF10144E; Sat, 11 Jan 2020 02:56:37 +0300 (+03) Date: Sat, 11 Jan 2020 02:56:37 +0300 From: "Kirill A. Shutemov" To: Wei Yang Cc: akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, kirill.shutemov@linux.intel.com Subject: Re: [PATCH 2/2] mm/huge_memory.c: use head to emphasize the purpose of page Message-ID: <20200110235637.ppkb6iecd4ayiqr5@box> References: <20200110032610.26499-1-richardw.yang@linux.intel.com> <20200110032610.26499-2-richardw.yang@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200110032610.26499-2-richardw.yang@linux.intel.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jan 10, 2020 at 11:26:10AM +0800, Wei Yang wrote: > During split huge page, it checks the property of the page. Currently we > do the check on page and head without emphasizing the check is on the > compound page. In case the page passed to split_huge_page_to_list is a > tail page, audience would take some time to think about whether the > check is on compound page or tail page itself. > > To make it explicit, use head instead of page for those checks. After > this, audience would be more clear about the checks are on compound page > and the page is used to do the split and dump error message if failed. > > Signed-off-by: Wei Yang Acked-by: Kirill A. Shutemov -- Kirill A. Shutemov