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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F11B5C4332F for ; Fri, 3 Nov 2023 13:07:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376486AbjKCNHz (ORCPT ); Fri, 3 Nov 2023 09:07:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229379AbjKCNHy (ORCPT ); Fri, 3 Nov 2023 09:07:54 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0979A111; Fri, 3 Nov 2023 06:07:49 -0700 (PDT) Received: from dggpemm100001.china.huawei.com (unknown [172.30.72.54]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4SMLYk61CXzrRsT; Fri, 3 Nov 2023 21:04:42 +0800 (CST) Received: from [10.174.177.243] (10.174.177.243) by dggpemm100001.china.huawei.com (7.185.36.93) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.31; Fri, 3 Nov 2023 21:07:47 +0800 Message-ID: <88a40128-e55a-4dde-b664-99ff3ead175b@huawei.com> Date: Fri, 3 Nov 2023 21:07:46 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 4/5] fs/proc/page: use a folio in stable_page_flags() Content-Language: en-US To: Matthew Wilcox , CC: Andrew Morton , , , , David Hildenbrand References: <20231103072906.2000381-1-wangkefeng.wang@huawei.com> <20231103072906.2000381-5-wangkefeng.wang@huawei.com> From: Kefeng Wang In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.177.243] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggpemm100001.china.huawei.com (7.185.36.93) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2023/11/3 20:28, Matthew Wilcox wrote: > On Fri, Nov 03, 2023 at 03:29:05PM +0800, Kefeng Wang wrote: >> Replace ten compound_head() calls with one page_folio(). > > This is going to conflict with Gregory Price's work: > > https://lore.kernel.org/linux-mm/ZUCD1dsbrFjdZgVv@memverge.com/ > > Perhaps the two of you can collaborate on a patch series? Will check this patch. > >> u |= kpf_copy_bit(k, KPF_SLAB, PG_slab); >> - if (PageTail(page) && PageSlab(page)) >> + if (PageTail(page) && folio_test_slab(folio)) >> u |= 1 << KPF_SLAB; > > This doesn't make sense ... > Yes, after commit dcb351cd095a ("page-flags: define behavior SL*B- related flags on compound pages"), the slab could not be a tail, I will drop this line.