Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp5322546pxv; Wed, 21 Jul 2021 02:37:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyRyozYpoW0euK0NFi7NZM09QQRMop8Q+Hd5CadyOk1KZ314kWlrKd3WkJAWYKY7JGHHLCN X-Received: by 2002:a05:6602:d9:: with SMTP id z25mr26227534ioe.154.1626860236488; Wed, 21 Jul 2021 02:37:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626860236; cv=none; d=google.com; s=arc-20160816; b=kXKYEnKElpQqCVsdUmKk4upgmYIa4RgUEutM1pNCSuItQI9ssNlmUba4FFnn90EXrm i2Gh2AiH2RnvoHgCs+4nmUXy8m8JWN4mhSDsMjGAmxk8FcAcDjryBN79G3YPDGq+Rqrz Od15q/T32Q1TRlXFvu4LmGAXQtUgAldATYHVzU6tI9HhkB4zGVJ7fjyO2KAIuFgX20v+ MlwB+VARXB+2Rzc5I9YLL3Kxm+8NSu7mY+561WjX44bpZyas5ku/aSqeo5N4Azrw/HSg yzx/Kdekz9CZKFMMm2uUZbOLWAZuZdIeRJxLIZ1KQy9kZxIqlw1ZCcu/50QznBP2KCvl 2NyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=tEPQC37zj4QnC8SVMNRsX+otOlbBj/ed4r9GM2wov00=; b=VVZ0WFbMiVch4G4bPXUIM56qLrJ0WXl39JCK6NJh37O4GW1gywWZXPd4JfLDZpiMJR K3/AlzaiOLELSnGqyN6Z2TKQx2Uk6e6mIhNKehzBKadJaR9RzMcJa6oK2NgBFu5lvgvH S3DTAOBdX1EPWNAGur7bzjePuJmTcKgNGa2WbetB+COTKLxNbemjd4zEdjdviOleJIBg 6gfdFoYUa/rIC/naEYCEYz4KgMFETDSqUgKZf+rDh3leLqVwtwbk6058RdkBeyD6rC1H x6bWoNV3EuE1w301bixov42eOOLnRnEtoia1p3wlXtZ8Z67hyDxit6XUVgtTKvuvKEXv JrcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Uvp2w68c; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f2si26909776jat.114.2021.07.21.02.37.05; Wed, 21 Jul 2021 02:37:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Uvp2w68c; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237239AbhGUIyw (ORCPT + 99 others); Wed, 21 Jul 2021 04:54:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:33366 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237360AbhGUIvK (ORCPT ); Wed, 21 Jul 2021 04:51:10 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6B12360E08; Wed, 21 Jul 2021 09:30:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1626859833; bh=SKXjNvpvJ2ame/si0roFi8eBFQNTGfl9xkiytZdEM1Y=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Uvp2w68c1rRJ4JO3NEsHqmk9QGse8y1ty2dpAP5W2d9eQIRREKLmQfdPnn3C3Rw/E XA0dLOWRrut9uq6/oIVHQj2jR9imespACx4g4n+b67KCHbIkHAW0AZdafcK3EC8sgf 8M1lCcxOnZEN284vWcnypdEeI5p4J23xFVoSG6B2QiSluIhqq1DyL+dv8NPL9tnq9t t4bz6ttrB65nTltbTaBHpVG2gUkq9Sz+K6eAH1pVUuvC8HyhcdX099j7oBEJQKJu4D x8EWLqwVVSfXRH+8ySaca7a3qoOatzhEk/UDPnbxCmSmWVDmrCQT7xAXzc9kmWrqey kMrugL/8LYoFg== Date: Wed, 21 Jul 2021 12:30:25 +0300 From: Mike Rapoport To: "Matthew Wilcox (Oracle)" Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, Vlastimil Babka , William Kucharski , Christoph Hellwig , David Howells , "Kirill A . Shutemov" Subject: Re: [PATCH v14 032/138] mm: Add folio_mapped() Message-ID: References: <20210715033704.692967-1-willy@infradead.org> <20210715033704.692967-33-willy@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210715033704.692967-33-willy@infradead.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 15, 2021 at 04:35:18AM +0100, Matthew Wilcox (Oracle) wrote: > This function is the equivalent of page_mapped(). It is slightly > shorter as we do not need to handle the PageTail() case. Reimplement > page_mapped() as a wrapper around folio_mapped(). folio_mapped() > is 13 bytes smaller than page_mapped(), but the page_mapped() wrapper > is 30 bytes, for a net increase of 17 bytes of text. > > Signed-off-by: Matthew Wilcox (Oracle) > Acked-by: Vlastimil Babka > Reviewed-by: William Kucharski > Reviewed-by: Christoph Hellwig > Reviewed-by: David Howells > Acked-by: Kirill A. Shutemov > --- > include/linux/mm.h | 1 + > include/linux/mm_types.h | 6 ++++++ > mm/folio-compat.c | 6 ++++++ > mm/util.c | 29 ++++++++++++++++------------- > 4 files changed, 29 insertions(+), 13 deletions(-) Acked-by: Mike Rapoport