Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp979681pxf; Thu, 18 Mar 2021 16:58:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxUOOTXMXd5/a84RCrEn5+qi5mtvxQP3NfKkRXEF8aAP6bA3JdZRNOhjiMTH7j/zcozT2Gz X-Received: by 2002:aa7:d656:: with SMTP id v22mr6465188edr.119.1616111936433; Thu, 18 Mar 2021 16:58:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616111936; cv=none; d=google.com; s=arc-20160816; b=Lr/4aosQQnyjX1uL+SKS/HpdbqzbDRErzVnGV1JYQfXvZA5kGS+5+eIFIxMdsPXWLj z4mpH561fYw6KNssCTgwczcEbPI03Wx+VvheiI1W9qEEXZdWTUonuElnCsAU8VYeaA82 6CIGfv0O5S1fCpILbP0WALPpWfIxE2kjbrbLI+o6O8ewpsxIbSTYVWWBCljpRqzpj+eR jCpM+ZeJERCYZQP3H1UIlx/vjZrx3IzNk8deJ+NHl1KUslG8OPADvDNDpFF/lQp4Aa2+ DBRNAQqf58AR3/UlbnrUm1iF8DB36gF58SwuEBlV3995XzYGUOnjKT1A4EpdQ9nbm/w6 sgSw== 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=T8YZFchahOt8+lJkHV/2xE+bNUKy8Aar3tpIvxe8Zmw=; b=jh+69XEmNt6FQvqLVWNk+Qnbu6BX3/Chygv6Wqt3I4Pw848JlG1e4dW5DxWKbttCAl 7Ifp4alKIIbZ4G9oKwiIFvvAzqqZbAef+8lK1AIHd6OGp7JL2/rXwS8loEwvWBZVogFP pz0u+U6hnfozh48Mtzen9Yy24VuJg3qUZkAnqDZSGEfM5wYzp9utIhiOBVcd3cyn4lVr /J/fNqkZu3WdC3RrKabYgAsHpv7LdaSpfJhfGKGgRYxaQPgmXWmPAvuUj5vTHEVtq5qd gjyU78jnPERHypCUtojGgEBZovk6bcdL/Ajn1LSgURKR5PHBG5JUcXcHRSLZWSMAZZI+ Ci/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=MZyWIfRo; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d2si2563081ejz.77.2021.03.18.16.58.33; Thu, 18 Mar 2021 16:58:56 -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=@gmail.com header.s=20161025 header.b=MZyWIfRo; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233134AbhCRX4y (ORCPT + 99 others); Thu, 18 Mar 2021 19:56:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37040 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232971AbhCRX4v (ORCPT ); Thu, 18 Mar 2021 19:56:51 -0400 Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9041AC06174A; Thu, 18 Mar 2021 16:56:51 -0700 (PDT) Received: by mail-pl1-x631.google.com with SMTP id g1so2094254plg.7; Thu, 18 Mar 2021 16:56:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=T8YZFchahOt8+lJkHV/2xE+bNUKy8Aar3tpIvxe8Zmw=; b=MZyWIfRoYimVsnLxjnaG0IczdCG4R6V0S3hEk7xv8SPfeA4SZzJUVVRTpzyKWoSqaX eOg4KdljTpSgotTfEKB/4XwoXDI1oTZsmHEzCGVV1k3QEQFed0z24iuMM7TgCVnykONU E5scjxblZxPCbbo4l3aqZRivEuiwGQ3MWovJwO5U4tXBMFZj890qJ85xuxrmKeQqKaMX oJ63M+qdpa9N1rbm//YGatO6f11sa6717sJOJ9aZh6x84McdrPHJWmWTL0IXe3Git5/1 Yz3ZHg565Y5s198rBwnDh4mMgYbPFq7e6cfgB7R7hGS2+n4p8Auwxm8Q2fSPOJL14VHB Gd7A== 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; bh=T8YZFchahOt8+lJkHV/2xE+bNUKy8Aar3tpIvxe8Zmw=; b=jz2f0N/o5QvuwZBAUFhpOAJGCTp7XFPKYq7b9aS/M4gJyKEV5ocgnHGMDDPy4rhopz zYr4927zYF7LrmY+80F/6naZoMv7Fdsmwd5rjlfI8OTJj/0SqkmS5vdOiXsdM55ZGQjS 5fYGppDAM1x+HNKlR7ulIDb6MANSBUfWapeq0aUMPtikZSQ0GNo2SOtLrPXCeHHmBV2O FanSJdXrM6XAVj6uGkH/W16vh8tumqWn6j5w7VcQPur13Bl4dCXY9lwvTLv1nxk1sL+S Hto/DE/6V84Uby8Bn/smbbmkrW9vidjfqFxcOxjjF1/14svydbtK6oW9okkGb6VUGv0v 5asA== X-Gm-Message-State: AOAM531PygJ9gTMpngqwSTBBJg0ozBTFH3LARIhxRKw2w4AaGFRMEZEw zklR0HIefyIzpxE9XwF0K2Dm4ScQNFIN2Q== X-Received: by 2002:a17:903:2286:b029:e6:6499:8c2d with SMTP id b6-20020a1709032286b02900e664998c2dmr11726647plh.17.1616111810951; Thu, 18 Mar 2021 16:56:50 -0700 (PDT) Received: from localhost (121-45-173-48.tpgi.com.au. [121.45.173.48]) by smtp.gmail.com with ESMTPSA id g2sm3338277pfi.28.2021.03.18.16.56.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Mar 2021 16:56:48 -0700 (PDT) Date: Fri, 19 Mar 2021 10:56:45 +1100 From: Balbir Singh To: "Matthew Wilcox (Oracle)" Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH v4 01/25] mm: Introduce struct folio Message-ID: <20210318235645.GB3346@balbir-desktop> References: <20210305041901.2396498-1-willy@infradead.org> <20210305041901.2396498-2-willy@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210305041901.2396498-2-willy@infradead.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 05, 2021 at 04:18:37AM +0000, Matthew Wilcox (Oracle) wrote: > A struct folio refers to an entire (possibly compound) page. A function > which takes a struct folio argument declares that it will operate on the > entire compound page, not just PAGE_SIZE bytes. In return, the caller > guarantees that the pointer it is passing does not point to a tail page. > Is this a part of a larger use case or general cleanup/refactor where the split between page and folio simplify programming? Balbir Singh.