Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp4005129rdh; Tue, 28 Nov 2023 09:14:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IHN4ogVq84mr0nu3U/aug30FDJ77oaUXih/cnH0ebDu+Rs1NLpogwXv9pQHZnfY2aGS916E X-Received: by 2002:a05:6a00:1402:b0:6c4:d628:2143 with SMTP id l2-20020a056a00140200b006c4d6282143mr16313272pfu.31.1701191651030; Tue, 28 Nov 2023 09:14:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701191651; cv=none; d=google.com; s=arc-20160816; b=KXkVKBAzDj3OefiuM/DYCSAlSddLu/EsJW591M2PnPT5V2DdkF77SauSLGh8Rt3QY2 TD6acXSdqbXPTrLTzHuRMl31UQjBguWMAMEclKmFeC1XRAQ+XyKrqR5xwJXxAFkzJjaJ U6KS1aFBW5Zhc8F5WeC+iKk0iYoV0Ssw6ohfzZlfW+f06h9QtE+N/0lgS9qpI7LR4EqZ RRPCMJxlo4NClukBxXFSEDcsjRkoKNlNkvL0jTsU1ggKgHAyZI+0QqPE6hq+8zhJebRE TUoH/NbnoJOGU7bMcvKsf9O2YoiQhYFix1yIdbPmKEEq7brroPE37xvlffVO5FLMrj3z 4ouw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Vm0O4QHg+NgUnD86syn9qOPr1P8d6e7mjB/3wAPf3vo=; fh=NkH3HZVMVAUJ9u9/jI0HsUpBysM73vtwnakiBn4cHcs=; b=SsJPKUgRNcBykzfgwXnrNc8SpuX8DiEWGJB0TT71fT8HHsC+l11rwexTnYbDkdzhd/ PMX/Qy+koXxrYeeDX7dFqVH8eT4XFowWg5bPkF3VUKXtbHPrqjPyzfT748ictR4/PNt7 OiLyWoH9DYZL681J8BtdAsxJCrccBngmXhuw4SsnUD/oyVhl8p6uZk+YQx3BLGgyGFVy 95HxkRnBnq5YRxVAPFX+HD6jupkRAkgMOAEAsumcpEWbs8VmCBZwGgGnHnqmwEaEa8ef 33QCJwJFIizQNyj3COEQkUzjChzB2z/QiC2mNKQA747NL+Np7q2X3pkVzccxSmxqyIRd WI0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=JG0Zn4aB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id o4-20020a656144000000b005c1b5a76098si11746066pgv.771.2023.11.28.09.14.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 09:14:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=JG0Zn4aB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 55B60809A81B; Tue, 28 Nov 2023 09:14:08 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344566AbjK1RNw (ORCPT + 99 others); Tue, 28 Nov 2023 12:13:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229519AbjK1RNv (ORCPT ); Tue, 28 Nov 2023 12:13:51 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4BAE210EB for ; Tue, 28 Nov 2023 09:13:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1701191637; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Vm0O4QHg+NgUnD86syn9qOPr1P8d6e7mjB/3wAPf3vo=; b=JG0Zn4aBuxFq1uUDjYuPSrafcxfJRm4wKeipRGudSYbEtFbJv801lwNuv/o7/hqTBOI8Ww NND5dgq+Jbf4WdNpscj8SA+vv+nVnuMOS4Gjouv/7E3NAevDtC2qTOPEBsZdqivGxDCE42 vrXRM5UUkS+d/dVQanKjX0ebTFIdJqE= Received: from mail-qv1-f72.google.com (mail-qv1-f72.google.com [209.85.219.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-462-xA7U8tPxO_uCsCFdLPY08Q-1; Tue, 28 Nov 2023 12:13:56 -0500 X-MC-Unique: xA7U8tPxO_uCsCFdLPY08Q-1 Received: by mail-qv1-f72.google.com with SMTP id 6a1803df08f44-67a1f38b735so9823546d6.0 for ; Tue, 28 Nov 2023 09:13:56 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701191635; x=1701796435; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Vm0O4QHg+NgUnD86syn9qOPr1P8d6e7mjB/3wAPf3vo=; b=h09tIaWOxciFxUBUR2HKqQxscboEXeQFe85FLK1wfL/A3JPJOCMhKV2TaOli1Nuaf5 UrW9E2MTy6quypCUCShrD86vdQg+OORqGT1PZebl0jRBxYRh5A0QVAwi9o0UUsU+0upn 5n9I2kS7pDmAnXJx0OPZ6XET+rh4/HRlQKHhbiupW35Az1ka19ygymga2LNtKczHoKI/ Nxj716IlDb+n/5XV6i/7PGuC8GHU16GLirJMikXMk6dqHFoRtO8rq5lTCzHUnd2QnclF R9mzzdt8Ufn+/qoDqHC8ldVFhoZFtkrrD9eWEE5I1iuJXA9FFVOjP9GNp2H/G2Qk6jbY mPnw== X-Gm-Message-State: AOJu0YxhYgF7o4a81BEscZpjzzj+UIdS2F0kRJV3S03dq9vv20dwx6PI DAxUgDdDdLCoEUdEPVsNnNXxQlEQw3CT2wLRzEuv56ntiNh6tYI126pfESWuoV7uLa6AYNipnoT yNn8TX8ntgcfTH1MCgHow2TsM3vDIJFso X-Received: by 2002:ad4:4982:0:b0:67a:14fe:f3b0 with SMTP id u2-20020ad44982000000b0067a14fef3b0mr15322577qvx.0.1701191635461; Tue, 28 Nov 2023 09:13:55 -0800 (PST) X-Received: by 2002:ad4:4982:0:b0:67a:14fe:f3b0 with SMTP id u2-20020ad44982000000b0067a14fef3b0mr15322557qvx.0.1701191635195; Tue, 28 Nov 2023 09:13:55 -0800 (PST) Received: from x1n (cpe688f2e2cb7c3-cm688f2e2cb7c0.cpe.net.cable.rogers.com. [99.254.121.117]) by smtp.gmail.com with ESMTPSA id w6-20020a0cfc46000000b0067a3f82c44fsm2265033qvp.138.2023.11.28.09.13.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Nov 2023 09:13:54 -0800 (PST) Date: Tue, 28 Nov 2023 12:13:53 -0500 From: Peter Xu To: David Hildenbrand Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Andrew Morton , Mike Kravetz , Muchun Song Subject: Re: [PATCH v1 2/5] mm/rmap: introduce and use hugetlb_remove_rmap() Message-ID: References: <20231128145205.215026-1-david@redhat.com> <20231128145205.215026-3-david@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email 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 (howler.vger.email [0.0.0.0]); Tue, 28 Nov 2023 09:14:08 -0800 (PST) On Tue, Nov 28, 2023 at 05:39:35PM +0100, David Hildenbrand wrote: > Quoting from the cover letter: > > "We have hugetlb special-casing/checks in the callers in all cases either > way already in place: it doesn't make too much sense to call generic-looking > functions that end up doing hugetlb specific things from hugetlb > special-cases." I'll take this one as an example: I think one goal (of my understanding of the mm community) is to make the generic looking functions keep being generic, dropping any function named as "*hugetlb*" if possible one day within that generic implementation. I said that in my previous reply. Having that "*hugetlb*" code already in the code base may or may not be a good reason to further move it upward the stack. Strong feelings? No, I don't have. I'm not knowledged enough to do so. Thanks, -- Peter Xu