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 12B03C433EF for ; Sat, 21 May 2022 04:04:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239752AbiEUEDx (ORCPT ); Sat, 21 May 2022 00:03:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234171AbiEUEDt (ORCPT ); Sat, 21 May 2022 00:03:49 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6BF2B1900ED for ; Fri, 20 May 2022 21:03:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=jZF0dK7dSzSmSYBxZ9RlugA1Atoa9lfE0izdD/WJbmw=; b=jFnNqC//Nj0KkvYHS1hFgW7Qmg U22wqusCEoMjpN/3ap9tbz3thYYPqfEED8koY2yVDZCEFZWZoWAliJ+jD8TWjXf45LkEya0YbCMNS AWyG0ww9K1M5fpypTG3FhqJaLWbSfgZAuXRNkGtopPgyNNae2nCzvC83HFpfEk5Am2APEPYfU8MQ4 h7yiSbfFS4NDCbgwRMg6h7LavcvqOaFnqi39aoHbhzStzqEeT8v9S5YeaGvBSJQyIlYIhdV25m3ZY aYQ2ktd03i85FZ82ilHnQr5FeS59aDT/oDmixHJIZZHAbZHHtfN5RUKCi+iQohJ9Y2fMt4zM9fHTa viRouxHw==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1nsGKB-00EMHv-3R; Sat, 21 May 2022 04:02:43 +0000 Date: Sat, 21 May 2022 05:02:43 +0100 From: Matthew Wilcox To: Chih-En Lin Cc: Andrew Morton , linux-mm@kvack.org, Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , Dietmar Eggemann , Steven Rostedt , Ben Segall , Mel Gorman , Daniel Bristot de Oliveira , Christian Brauner , Vlastimil Babka , William Kucharski , John Hubbard , Yunsheng Lin , Arnd Bergmann , Suren Baghdasaryan , Colin Cross , Feng Tang , "Eric W. Biederman" , Mike Rapoport , Geert Uytterhoeven , Anshuman Khandual , "Aneesh Kumar K.V" , Daniel Axtens , Jonathan Marek , Christophe Leroy , Pasha Tatashin , Peter Xu , Andrea Arcangeli , Thomas Gleixner , Andy Lutomirski , Sebastian Andrzej Siewior , Fenghua Yu , David Hildenbrand , linux-kernel@vger.kernel.org, Kaiyang Zhao , Huichun Feng , Jim Huang Subject: Re: [RFC PATCH 3/6] mm, pgtable: Add ownership for the PTE table Message-ID: References: <20220519183127.3909598-1-shiyn.lin@gmail.com> <20220519183127.3909598-4-shiyn.lin@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220519183127.3909598-4-shiyn.lin@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 20, 2022 at 02:31:24AM +0800, Chih-En Lin wrote: > diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h > index 8834e38c06a4..5dcbd7f6c361 100644 > --- a/include/linux/mm_types.h > +++ b/include/linux/mm_types.h > @@ -221,6 +221,7 @@ struct page { > #ifdef LAST_CPUPID_NOT_IN_PAGE_FLAGS > int _last_cpupid; > #endif > + pmd_t *cow_pte_owner; /* cow pte: pmd */ This is definitely the wrong place. I think it could replace _pt_pad_1, since it's a pointer to a PMD and so the bottom bit will definitely be clear.