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=-10.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 0FB1EC4338F for ; Tue, 3 Aug 2021 11:38:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EF36E60BD3 for ; Tue, 3 Aug 2021 11:38:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235677AbhHCLi6 (ORCPT ); Tue, 3 Aug 2021 07:38:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234602AbhHCLi4 (ORCPT ); Tue, 3 Aug 2021 07:38:56 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5DBD9C06175F for ; Tue, 3 Aug 2021 04:38:45 -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=n9mXEqpTfFK0JoG1V7B6cdn8c8+8uLuflTM6yqzd8eY=; b=RBuzJgSDVsCUrWyaubNCF/53jU Bq1jLXWOkOqKzACyjgGKGZh7uqcibdTYl1gXbD0O9MPsYg/TDFClSKkQGMyv4tuPSKal681jbGCHM qr0dUHnqAhOT4BW40IKIZVDo53klqEVaS/l8gWg+lI118bA0FmLBZTi+LQKaQs3bc6Oz0nKxcOVYs jlrpcfGE4SM1pjAMtTueqA/H/TwZ2EkElW2587i4n5l/2Hy718S95BbW6wMs29RiFHR1aNGV08fv/ XkwOJpnNHIC5vWmyFOsmuoBd1S3Lb6tDrTQRXRYFpHZz3W8rtZFZ4FuEeRNMXnmDW5zHnAYhoUKqY 61ji6XIw==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mAsiY-004a5z-BJ; Tue, 03 Aug 2021 11:36:46 +0000 Date: Tue, 3 Aug 2021 12:36:18 +0100 From: Matthew Wilcox To: Yu Zhao Cc: linux-mm@kvack.org, Andrew Morton , Hugh Dickins , "Kirill A . Shutemov" , Vlastimil Babka , Yang Shi , Zi Yan , linux-kernel@vger.kernel.org, Shuang Zhai Subject: Re: [PATCH 3/3] mm: don't remap clean subpages when splitting isolated thp Message-ID: References: <20210731063938.1391602-1-yuzhao@google.com> <20210731063938.1391602-4-yuzhao@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210731063938.1391602-4-yuzhao@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jul 31, 2021 at 12:39:38AM -0600, Yu Zhao wrote: > +++ b/include/linux/rmap.h > @@ -243,7 +243,7 @@ int page_mkclean(struct page *); > */ > void page_mlock(struct page *page); > > -void remove_migration_ptes(struct page *old, struct page *new, bool locked); > +void remove_migration_ptes(struct page *old, struct page *new, bool locked, bool unmap_clean); I'm not a big fan of 'bool, bool'. Could we use a flag word instead? #define MIGRATE_REMOVE_LOCKED 1 #define MIGRATE_UNMAP_CLEAN 2