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,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=unavailable 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 161E5C352A9 for ; Thu, 26 Sep 2019 14:13:30 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id C6EBD222C6 for ; Thu, 26 Sep 2019 14:13:29 +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="n+alj0kI" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C6EBD222C6 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 4FBA36B0269; Thu, 26 Sep 2019 10:13:29 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4AC956B026A; Thu, 26 Sep 2019 10:13:29 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 39A0E8E0014; Thu, 26 Sep 2019 10:13:29 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0111.hostedemail.com [216.40.44.111]) by kanga.kvack.org (Postfix) with ESMTP id 124036B0269 for ; Thu, 26 Sep 2019 10:13:29 -0400 (EDT) Received: from smtpin27.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay02.hostedemail.com (Postfix) with SMTP id B618852D4 for ; Thu, 26 Sep 2019 14:13:28 +0000 (UTC) X-FDA: 75977264496.27.nail01_1e4e7c490c220 X-HE-Tag: nail01_1e4e7c490c220 X-Filterd-Recvd-Size: 3831 Received: from mail-ed1-f66.google.com (mail-ed1-f66.google.com [209.85.208.66]) by imf29.hostedemail.com (Postfix) with ESMTP for ; Thu, 26 Sep 2019 14:13:28 +0000 (UTC) Received: by mail-ed1-f66.google.com with SMTP id c4so2208167edl.0 for ; Thu, 26 Sep 2019 07:13:27 -0700 (PDT) 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=Vn4RSijfnGv66ggFJIHwXLRfY5IYfYHE5mOxifctFWA=; b=n+alj0kI2bszwuP5vu089IXNWt6SHf9p9y/PJMEnOWrhUKD8kNwTwBQKaK5fJrBgJ0 DLsEATPCu1u9frWLnWJWIySO/950XmCObL/Gfy3oUgeip9+24O/Kevhp2faieQm133hZ YNw7dsu929RVaHOXq2074z0GHJoqrzEhOU8oVre8VqrLoYIcYnj3Kquy6QY0DEGvbJF9 Cjk2YXPboM8tV/rsJgR9z+EOCVi7mr401yopZh6xAVGwMCEjPBtSxnVsvXTKt/kPHWgz TIAvcTtaVXlXpExw64irCGAccUumoMGTA2pPYZd3HRp5N5Um9cWtUtTivWxdg7tYW/ay Zt7g== 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=Vn4RSijfnGv66ggFJIHwXLRfY5IYfYHE5mOxifctFWA=; b=VnKKn8vf8MhWFagOhvWYVzY9C+nFm/K2rFfc9XT3d17ofCjXllLEiO8deX1K+rbaoF uDsAij40maWBz/BWc/626bSRp8YUB9cUWaQPlK8gx5WKP2BZtXtlmBEklwby5RLnOp8f i6HrzhMum21W/OlDe3xSQ/t7PosJlD8uC6MEx8OrlqhF6BfKhRcW3GzpweZnxMC3+R98 qj+gDvhWwiFlHECmTdGTTIslu0u8WYk9lughyjhwnGdL0r13oqoRw54DxfNR3wzeVfNO RxytA74nJBlVLnzDFxxD8wH4XScRGyXGv9z0wP26LxnvRWqqx7OyS5rGgN/27pkckGIM 4Tcg== X-Gm-Message-State: APjAAAXsLnuDhIGkZcrb4qI+Q8uv3ULr/EwxwQLEnRoXLUhLDNYboEPV qp0nSlZto3vvP7YuW8rJfJNYbm3Q75KS+g== X-Google-Smtp-Source: APXvYqzrQUqueSPMkuBVzXfwe7X+tnL71qVwO3XqRk0vg77XaF7BwKOfcf2zASWGr4wwQG+MuAQ8nA== X-Received: by 2002:a17:906:1d03:: with SMTP id n3mr3296087ejh.287.1569507206884; Thu, 26 Sep 2019 07:13:26 -0700 (PDT) Received: from box.localdomain ([86.57.175.117]) by smtp.gmail.com with ESMTPSA id bq13sm252145ejb.25.2019.09.26.07.13.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 Sep 2019 07:13:26 -0700 (PDT) Received: by box.localdomain (Postfix, from userid 1000) id 4A304101CFB; Thu, 26 Sep 2019 17:13:29 +0300 (+03) Date: Thu, 26 Sep 2019 17:13:29 +0300 From: "Kirill A. Shutemov" To: Matthew Wilcox Cc: linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 07/15] mm: Make prep_transhuge_page tail-callable Message-ID: <20190926141329.zumbhytzrpx4ekmq@box> References: <20190925005214.27240-1-willy@infradead.org> <20190925005214.27240-8-willy@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190925005214.27240-8-willy@infradead.org> User-Agent: NeoMutt/20180716 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000017, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Tue, Sep 24, 2019 at 05:52:06PM -0700, Matthew Wilcox wrote: > From: "Matthew Wilcox (Oracle)" > > By permitting NULL or order-0 pages as an argument, and returning the > argument, callers can write: > > return prep_transhuge_page(alloc_pages(...)); > > instead of assigning the result to a temporary variable and conditionally > passing that to prep_transhuge_page(). Patch makes sense, "tail-callable" made me think you want it to be able accept tail pages. Can we re-phrase this? > > Signed-off-by: Matthew Wilcox (Oracle) Acked-by: Kirill A. Shutemov -- Kirill A. Shutemov