From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A95F3C282DD for ; Fri, 10 Jan 2020 23:56:40 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 6494D20578 for ; Fri, 10 Jan 2020 23:56:40 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=shutemov-name.20150623.gappssmtp.com header.i=@shutemov-name.20150623.gappssmtp.com header.b="ZJEDO0YS" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6494D20578 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=shutemov.name Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 047258E0005; Fri, 10 Jan 2020 18:56:40 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id F39F68E0001; Fri, 10 Jan 2020 18:56:39 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E29108E0005; Fri, 10 Jan 2020 18:56:39 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0131.hostedemail.com [216.40.44.131]) by kanga.kvack.org (Postfix) with ESMTP id CAA8B8E0001 for ; Fri, 10 Jan 2020 18:56:39 -0500 (EST) Received: from smtpin01.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 725A88248041 for ; Fri, 10 Jan 2020 23:56:39 +0000 (UTC) X-FDA: 76363386918.01.army86_572dad51e5258 X-HE-Tag: army86_572dad51e5258 X-Filterd-Recvd-Size: 4001 Received: from mail-lj1-f195.google.com (mail-lj1-f195.google.com [209.85.208.195]) by imf44.hostedemail.com (Postfix) with ESMTP for ; Fri, 10 Jan 2020 23:56:38 +0000 (UTC) Received: by mail-lj1-f195.google.com with SMTP id m26so3843039ljc.13 for ; Fri, 10 Jan 2020 15:56:38 -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=o43VFwEoxVEfB+U3C1pwRMI2sKoP6G70qD1c9EhQBZZlNECtF5j7nFwjntGHrQ0cWE T617vu9jFX1i2+HBqiSOsKBH18J8Wl+t2seOiCMUfk+AZM7yLU/hXSs1IrXMG4opvuRT wZso3ICaVA6N1O3yGfncto1pAgTrarGcy4+nAuY0/Jd4G+9oa0z1YcM8+nYRx515v08E rvtKVVc6nxHfBbbHfOla5pkaOO+PVxhBt5r1Mi6a4IVDs6L/8XlN4LcOz89fXuF0/p0p tixoJqWyQqF8JVLFfdYxf5dH5DxjnFUrhNeTqdBMvpfo26x9KSjwV/4nwrWVVu90tThw TCOg== X-Gm-Message-State: APjAAAV/adFYZ2hsXLMiw/ZD7qOP53Dzv7XdPgq8/9/CKoipdoEQeSrg 6/JjtqEOuKFrZor8416RUJPQrFaaXpw= X-Google-Smtp-Source: APXvYqyYnIVVGBQ0KU6ZYtLcMk4lwa3fxOsd1TpsJHLhRA96yRkEYjF9cTgjcd/1b4ELB7gGiTiejw== 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 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000063, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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