Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1824561rwd; Thu, 25 May 2023 19:39:51 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6ih7MTIOyBXBnK0q0Ook/Tqef6+S4w73bIYsV+m1sVQGV67wGXY2C9SJFf7UWmUY3spRb7 X-Received: by 2002:a05:6a00:14d0:b0:627:e49a:871a with SMTP id w16-20020a056a0014d000b00627e49a871amr1192045pfu.23.1685068790869; Thu, 25 May 2023 19:39:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685068790; cv=none; d=google.com; s=arc-20160816; b=ojnz78U8lFcVwra0yhDBnPbkwBsEFMcjdsvgWj3bVhY3KaV1Kyou9TJ5cavHOBo2RT jRWhHsbXmQQex0/I+37t/dYUqQdVee2Wn3X/+4kzQeFfr75Ge5sd7Wh0V1xs/gbyNpgM hF1rqFi7diNdXeKMipHiNFhUs0wouSxVzS4mu8fJeVwp2eGZfhXp4SRk3L1tjGlIAdHt RpfiuYucHchi4xprQ8qZERkvO4gyK8Qzuj1C+BHg4X20XXZpwyG+DTzGHAPZ4Y5yJpxB 8DXfuvXrGl4E1dqz8N6q3HeZZd1iGnjRuHMmSu1gjaquD428eoeAW3H+3R2A7+sKB+SQ J2rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=eFUluCk6Yg3CJh7zCYAWn34AyV3ksw1s+RmFmqdT4VM=; b=M9xz6F+PZ1A1ux/uAU9hwPvNy7ZeMfYR9vEDiCRG/otw1xDpVmu4XZYcNLuPZTJ2SS PcvSfiZgrvYEtUJVVO9ww43ZdjeqozGjzzR88GGi/hPGEtCUImEwUP49LwS91O42+nhc pnqqLN9Xg2DrprgKob49w5+VB0aIreH2FpqiN84BjSmQ7R7KhUvJ4s5dXuLlckGSqOit 9F8l6tk5NjJ2r/PQCce5hc2SK9Y72Se1iWPRNgbeoUd5/M8ySeDozKQV6Hz8QwTBKbaD CHiFCpAf8oxuL7fVOzgGJR9YTa70LypmL0piQp6ikx4pzrDAHMGOVU8hI4w8kxx35FOm wIPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=ZVVvNEeu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h4-20020aa79f44000000b0064d6ca3ca97si2914593pfr.344.2023.05.25.19.39.37; Thu, 25 May 2023 19:39:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=ZVVvNEeu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234667AbjEZChS (ORCPT + 99 others); Thu, 25 May 2023 22:37:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235295AbjEZChM (ORCPT ); Thu, 25 May 2023 22:37:12 -0400 Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 686BC13D for ; Thu, 25 May 2023 19:37:06 -0700 (PDT) Received: by mail-lj1-x235.google.com with SMTP id 38308e7fff4ca-2af98eb6ef0so2377671fa.3 for ; Thu, 25 May 2023 19:37:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1685068624; x=1687660624; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=eFUluCk6Yg3CJh7zCYAWn34AyV3ksw1s+RmFmqdT4VM=; b=ZVVvNEeuRvv5sf0kqOR514LS1Iu+5Ia5iGdHgcuCiLHWeZh785cO8pEma86B0ZW0Kg awOf49dZ5Tem6bJ35Rurh91k6U9qPXumeUMeJycnRO/1Jlk5WWD9sq4jUUA71xamEEAf Mh7tU69J8JoTn3eZkjKGVXA4JsSM1ilICrrE4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685068624; x=1687660624; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=eFUluCk6Yg3CJh7zCYAWn34AyV3ksw1s+RmFmqdT4VM=; b=XSmGDrX/0gWiCnXKNz4DLYpoCGGC/14xl6EzTTufUYxqi9oNoJjKDkvzhyAZ332T8i DLCqbNmP36hkhThpzS9k7bykVHNzpdFVzqE9GjCTsAowyuVWkipNmtvAFxOKgh2hjZl2 nKCd2eupZrl23Xlv3iA/dKnB656dYybCFZe6uTCLt7psDRtp5SHEw9shJBAAnY9C8P0E hLAWIMIu7OJHQM2KW4lBt6lKzeMtDqz1nvrwaJiKxFsTQucdZ2v8fqJ/loOpXNLtISrm Vm5ct/G7kApmm8pk8W1hJcaB+Qcwu1B2iqXtGseMEloT0ecoZwV+ZI3xtS1gKQa663LG t6OQ== X-Gm-Message-State: AC+VfDziW4gZc6wkdeVi2WqWyDUJFeZFpoetMVEUJ5VApBrliiQYYZXN unwoRJ4GeyG2Saw2YQinFuBWydEBilBFNDU8aVqq1jX4 X-Received: by 2002:a05:651c:234:b0:2b0:5a04:a5bd with SMTP id z20-20020a05651c023400b002b05a04a5bdmr128690ljn.42.1685068624583; Thu, 25 May 2023 19:37:04 -0700 (PDT) Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com. [209.85.167.52]) by smtp.gmail.com with ESMTPSA id l12-20020a2e3e0c000000b002b02e3f7ef9sm470221lja.61.2023.05.25.19.37.04 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 25 May 2023 19:37:04 -0700 (PDT) Received: by mail-lf1-f52.google.com with SMTP id 2adb3069b0e04-4eed764a10cso183046e87.0 for ; Thu, 25 May 2023 19:37:04 -0700 (PDT) X-Received: by 2002:a17:907:d10:b0:96f:d345:d100 with SMTP id gn16-20020a1709070d1000b0096fd345d100mr533983ejc.59.1685068179297; Thu, 25 May 2023 19:29:39 -0700 (PDT) MIME-Version: 1.0 References: <20230525223953.225496-1-dhowells@redhat.com> <20230525223953.225496-3-dhowells@redhat.com> In-Reply-To: <20230525223953.225496-3-dhowells@redhat.com> From: Linus Torvalds Date: Thu, 25 May 2023 19:29:21 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH v2 2/3] mm: Provide a function to get an additional pin on a page To: David Howells Cc: Christoph Hellwig , David Hildenbrand , Jens Axboe , Al Viro , Matthew Wilcox , Jan Kara , Jeff Layton , Jason Gunthorpe , Logan Gunthorpe , Hillf Danton , Christian Brauner , linux-fsdevel@vger.kernel.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Andrew Morton Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 25, 2023 at 3:40=E2=80=AFPM David Howells = wrote: > > +void page_get_additional_pin(struct page *page) > +{ > + struct folio *folio =3D page_folio(page); > + > + if (page =3D=3D ZERO_PAGE(0)) > + return; You added that nice "is_zero_folio()", and then you did the above anyway.. Linus