Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp19669169rwd; Wed, 28 Jun 2023 12:27:37 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ60hdcfEXAaAw7+6QNVqZzt6kurbFlalqxtndO4W3zsKh/pWgCMzae6XmgtmcqURp/YTJwG X-Received: by 2002:a17:903:245:b0:1b0:f727:bc41 with SMTP id j5-20020a170903024500b001b0f727bc41mr10640429plh.42.1687980457120; Wed, 28 Jun 2023 12:27:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687980457; cv=none; d=google.com; s=arc-20160816; b=xBoT0h5JvAGEMLG/CVbaxPdyW7Kaz/E8mMDc96D7WbL3K0sVPuEvfERBnewsiSS1jS 7vytS4ykcJfPGqYxa9QKzbBo/E+IRzUEXY6a0pbwnm3KHMDHpSxr2rNFITgPQorL9Inc M3QLKhZ378La6zOBwllFobxlZh+656wysOILkkyU8u4b4g6zY1BDX5Yb74ATyR1kUg2b ppq93UMKGs4AfglXvGG7d+ok4o5kJ7gn1OJLjvM9Hw+6vSyBvEtaxq6am8/VPTzPjZtX 0cgZTd91MMp7TzAWcVdgje/5JGoAkGJOwjblyrXclamdecN0g4B4zIj7ZWuuCd0/LOv9 HH9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:content-id:mime-version:subject :cc:to:references:in-reply-to:from:organization:dkim-signature; bh=DHYzA765GPu9kX2/aCtAcTvHRHevAxD+3e5vQVRrgfY=; fh=o4SlwfJyrokE/dNa77jO95haD5wOoUEQf+osDJdTV7Q=; b=xDahgFllf/MKjXmNJmZ+NZt+cVu+yb6nx53qoS17t1stUBMHkAdqd+YTROZn9OqgeI 9Sj5fxzS4m6uUBR65HXX0aU0CJ+6r4k3bQUbItokm5EGNelctL/WYsfox3pN2rYrdToY S3VAawBH4qSJKdxD62ZtKnnaj/NDouAQAjE/GPl4JPTnUjRoJKuBF/vWG2Pudn1aT4o2 jzFYz1enTVaq4yy9XnBTWZuXRDisFhhep3k5YBosmxlDVvLkt0TY4J26Pd8wNG+P6bns M4GF0k+nvOhfxkcu11i+NU3nMtfU1BYxz0Z7gI0WqPz1DsVQFez39uZBvF7JbwZLtDS6 Tfaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Mv8Feepj; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d7-20020a170902cec700b001b392bf919bsi9784038plg.407.2023.06.28.12.27.22; Wed, 28 Jun 2023 12:27:37 -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=@redhat.com header.s=mimecast20190719 header.b=Mv8Feepj; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231372AbjF1TLf (ORCPT + 99 others); Wed, 28 Jun 2023 15:11:35 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:27623 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231509AbjF1TLd (ORCPT ); Wed, 28 Jun 2023 15:11:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1687979446; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=DHYzA765GPu9kX2/aCtAcTvHRHevAxD+3e5vQVRrgfY=; b=Mv8Feepj0GIXHp1Jc1q5KBPzfO61T7YucEoCGVlZRb0FF3R5SQEt+R/odguqzXS6T9czu8 NK9XoJ/VtKdYA9FzOAEwNyE8Lj0MPOo4mSzKTjQhCa6luaqgwkrgJM2Ft1MDCvpcaq8I5L dfGP4ljr6KHwGHTMtvSrY2bQChUxclw= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-478-yDhu-QUUMAKeu8FHPLXHfg-1; Wed, 28 Jun 2023 15:10:43 -0400 X-MC-Unique: yDhu-QUUMAKeu8FHPLXHfg-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id DDC1E8DBAEE; Wed, 28 Jun 2023 19:10:42 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.42.28.4]) by smtp.corp.redhat.com (Postfix) with ESMTP id C1DFB200B677; Wed, 28 Jun 2023 19:10:41 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: References: <20230626085035.e66992e96b4c6d37dad54bd9@linux-foundation.org> To: Linus Torvalds Cc: dhowells@redhat.com, Andrew Morton , Stephen Rothwell , linux-mm@kvack.org, mm-commits@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [GIT PULL] MM updates for 6.5-rc1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <3696705.1687979441.1@warthog.procyon.org.uk> Date: Wed, 28 Jun 2023 20:10:41 +0100 Message-ID: <3696706.1687979441@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.4 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Linus Torvalds wrote: > So I think it needs to match the comment (and the try_grab_page() > logic), and just basically > > if (flags & FOLL_GET) > return try_get_folio(page, refs); > > if (is_zero_page(page)) > return page_folio(page); > > folio = try_get_folio(page, refs); > if (!folio) > return NULL; > > instead. That looks right. David