From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D933CC433ED for ; Tue, 18 May 2021 21:13:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B5D59611BF for ; Tue, 18 May 2021 21:13:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240878AbhERVOZ (ORCPT ); Tue, 18 May 2021 17:14:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:42280 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236427AbhERVOX (ORCPT ); Tue, 18 May 2021 17:14:23 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id DB49D61209; Tue, 18 May 2021 21:13:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1621372385; bh=WZ6+AhG6U6Yfu+E7678PCLi0l7LujFMPm60OW6qUaIE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=W9L+kUErfhLxipuT/UDg1ikUzK27i1y47XwP01AV00GqyEQrxhw4WaHencntRT3I7 yoGOZou31pZS5auDremCye+WEFydAiPZEY5oBjbF1dyU4s+Myb3gWx152uwRZ4gkyO uDxer5Jh0Uhka94ZjupN6aTLNJkV9x68BZuu6VGk= Date: Tue, 18 May 2021 14:13:04 -0700 From: Andrew Morton To: Matthew Wilcox Cc: Miaohe Lin , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH 5/5] mm/swap: simplify the code of find_get_incore_page() Message-Id: <20210518141304.c09cd8762e3f3d16a722444c@linux-foundation.org> In-Reply-To: References: <20210518135352.3705306-1-linmiaohe@huawei.com> <20210518135352.3705306-6-linmiaohe@huawei.com> X-Mailer: Sylpheed 3.5.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 18 May 2021 15:33:54 +0100 Matthew Wilcox wrote: > On Tue, May 18, 2021 at 09:53:52PM +0800, Miaohe Lin wrote: > > pagecache_get_page() can do find_subpage() for us if we do not specify > > FGP_HEAD. No functional change intended. > > Please, no. This interferes with the folio work. In what way? Can't the folio patches simply revert this or suitably alter it?