Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1613193rda; Mon, 23 Oct 2023 19:43:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFN+4ur5M/Fyd3/heE/25Sp8x3yiz+26tnk9JsaCIE0XFgdx+Fp5vswKNQNZlrZsVwaXnWn X-Received: by 2002:a17:90a:1993:b0:279:354b:50f1 with SMTP id 19-20020a17090a199300b00279354b50f1mr9657776pji.3.1698115408832; Mon, 23 Oct 2023 19:43:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698115408; cv=none; d=google.com; s=arc-20160816; b=Ra0cI7TnkOl7m7idkNuN+pVDhiq7LaU7DPUm+vg+2HXTXjif5yLqwIKyQ/h4L2lwKE GgfuqerK0r3XS8rCoLehoUQkqPm4CKKYNGX21+8Rww5vSxei79WwL5iBuf3EWdIgyMhz 65ZUQ42B1fHvfcPpwRrZflhR6PPkBcug5qMpDk7F4hcI0kqWPdlKfW93gDm3Z0OxA+1f 4Pd+tqqqs2kQMhKBYAeOZSLdVvgF1jaxqiCZWa9F3LguqT2AOYDJDtGPYUJbd0hq/E6i rWFn2WL5avzQ0VrnRkJqj5zCVsmdXEF1PCZN6RFBr/bGGuanNcCN4kNGZwfvoQXET+8W eCQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id; bh=euqdyMDrvvfubh8GHy3NPY+FUKx1ijc2BSyC8VtRP9o=; fh=VoNlxu4dBw26lLhku+lJtfdreSnqS/dc9koFeW8UCkg=; b=dUKAnvf+62Wabs4eCwzCvMxpBGGfb/8PC96RUuukF62j24ofDePR2AdyQmUi8JeI6W Zn8qcsg4xvJuX832S+vDNNZ7KOfomaCehNskkeqgHjJpHFVYfnGV5e/T92vP+Ja4OA4d 1dJswx0XyrSpEWzMCA8QbaAB5HV4NmTK2/u4oRrQv109x3XoXSNrGyy2tLrVehbCzCEs qzT+LOzDWuYso84e125IAegkWPSZceze1i3aIby4/fNXdwSp6rbvj06N6/QK5UqanXWW NUbu1hshFl7iTN6ExhLy143c/a3tn526z2AW4wAvTz/KAF0Aa0LlWpW8M+p9GmpwAQV8 Dk4w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id e24-20020a17090a9a9800b00278ff770796si10187563pjp.88.2023.10.23.19.43.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 19:43:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id D3ABC804ACC7; Mon, 23 Oct 2023 19:43:27 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232331AbjJXCn0 convert rfc822-to-8bit (ORCPT + 99 others); Mon, 23 Oct 2023 22:43:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231913AbjJXCnY (ORCPT ); Mon, 23 Oct 2023 22:43:24 -0400 Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0DD2FD7C for ; Mon, 23 Oct 2023 19:43:13 -0700 (PDT) Received: from imladris.home.surriel.com ([10.0.13.28] helo=imladris.surriel.com) by shelob.surriel.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96.1) (envelope-from ) id 1qv7Nq-0003DF-1T; Mon, 23 Oct 2023 22:43:06 -0400 Message-ID: <450e102421c1c113552071964b88f1b2e14256a7.camel@surriel.com> Subject: Re: [PATCH v3 5/5] mm/khugepaged: Convert collapse_pte_mapped_thp() to use folios From: Rik van Riel To: "Vishal Moola (Oracle)" , linux-mm@kvack.org Cc: linux-kernel@vger.kernel.org, akpm@linux-foundation.org Date: Mon, 23 Oct 2023 22:43:06 -0400 In-Reply-To: <20231020183331.10770-6-vishal.moola@gmail.com> References: <20231020183331.10770-1-vishal.moola@gmail.com> <20231020183331.10770-6-vishal.moola@gmail.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT User-Agent: Evolution 3.46.4 (3.46.4-1.fc37) MIME-Version: 1.0 Sender: riel@surriel.com X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE autolearn=ham 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Mon, 23 Oct 2023 19:43:28 -0700 (PDT) On Fri, 2023-10-20 at 11:33 -0700, Vishal Moola (Oracle) wrote: > This removes 2 calls to compound_head() and helps convert khugepaged > to > use folios throughout. > > Previously, if the address passed to collapse_pte_mapped_thp() > corresponded to a tail page, the scan would fail immediately. Using > filemap_lock_folio() we get the corresponding folio back and try to > operate on the folio instead. > > Signed-off-by: Vishal Moola (Oracle) Reviewed-by: Rik van Riel -- All Rights Reversed.