Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2268923iof; Wed, 8 Jun 2022 00:59:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzb2ZM9BpYp+PNt5vvdcBPYiHKf9y92h0yGhqSi7o+MDz21L4rO4laBvb78sQgveHLG5RtU X-Received: by 2002:a17:90b:1e4e:b0:1e3:47e4:92b6 with SMTP id pi14-20020a17090b1e4e00b001e347e492b6mr44064488pjb.47.1654675186481; Wed, 08 Jun 2022 00:59:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654675186; cv=none; d=google.com; s=arc-20160816; b=ALJuKw1c0fTui/lMQQSo+c7lhbMs5XQfQcHg8OK3gfJfpihLTAXCyQZMXevdEpmYP+ 9jknn97l1WUuIkqQBotDHuKE6iuTbNxKspV8GcQv3kG+Wz2BPmXk9xk5NZ2EdOd+FN2q qWsoGy0pBuPoTQwHQXYBkL6n09wPr5MwC+zcDWbSYWP4yTqZaFfpQbEDKCzsc3rvTX5E ohaG7UCW5Fy9jI6B+LV1iBY+tDak/bjP9WkAVM/T/p9GiMiN7/0vhVqyJxjQiafddUCE 6OWF1hGI4H0iyyS+ydwDSJwl/DEDJO7H8QpFGXIBpJHcRxUc3qnat6uWh5oyLEmbSskG xU5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=m6bVRDhDwqhXUEbC4cBSqv9R/0i33tbMnIdzh+Mzw68=; b=RzDe9qaqC2/v9HZ+coTwsCAFOAI6wJKYv6cF+gl14Huj0H4LU/qyF6uBUcfhaxTNPM bgjm6gtePsYZeZbHdzenvM3p41MCRmShlD75K3gLUds0UyLyQBlYMtKmKm+B0rEvxiIu GTnyaVhWk104O1lBTnV/OlvEZXtgAwVlcLuGjW/izFEEU/UBPrQMai2peNlF1TCODJh5 O/LrCQVknEU7DAgBqt9/q48pKAZ/eXWJasB8XtVaXqx7cBrXFtoBN1rKq2i6l/DuDo5c beJcHI8rcXtLnarlKqm9yTcgSh4n2PrUWvDPDPgiWmpdURb0tlkhnd+fXYhUaYrO3Pr2 O68Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=M1p2Anz3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id y10-20020a655a0a000000b003fddd12f176si9198718pgs.861.2022.06.08.00.59.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 00:59:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=M1p2Anz3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1C4541E7BF2; Wed, 8 Jun 2022 00:30:07 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242359AbiFGLCl (ORCPT + 99 others); Tue, 7 Jun 2022 07:02:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242807AbiFGLAv (ORCPT ); Tue, 7 Jun 2022 07:00:51 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5A18B129 for ; Tue, 7 Jun 2022 04:00:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1654599608; 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: content-transfer-encoding:content-transfer-encoding; bh=m6bVRDhDwqhXUEbC4cBSqv9R/0i33tbMnIdzh+Mzw68=; b=M1p2Anz3gFAuyLtMncmMDO+CgkjK+6AObWLVp3aMXnmt2e/pJoodua1ULXBcbRP5BE9Pwd gQ/F9qoY+gXzFajMLndHcS/K7uks9CVMWgFwQDtJTVbvwTH1s4W0TazpOuSJwRF7RXVbPK zAbjhlIq3hGvwzugdV573oJBA1lCMEM= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-219-VII4NBxnMO2LXC51gicfMg-1; Tue, 07 Jun 2022 07:00:05 -0400 X-MC-Unique: VII4NBxnMO2LXC51gicfMg-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 00B1C18A6523; Tue, 7 Jun 2022 11:00:05 +0000 (UTC) Received: from MiWiFi-R3L-srv.redhat.com (ovpn-13-113.pek2.redhat.com [10.72.13.113]) by smtp.corp.redhat.com (Postfix) with ESMTP id DE4231121315; Tue, 7 Jun 2022 11:00:01 +0000 (UTC) From: Baoquan He To: akpm@linux-foundation.org, urezki@gmail.com Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, hch@infradead.org, Baoquan He Subject: [PATCH v2 0/4] Cleanup patches of vmalloc Date: Tue, 7 Jun 2022 18:59:54 +0800 Message-Id: <20220607105958.382076-1-bhe@redhat.com> MIME-Version: 1.0 Content-type: text/plain Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,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 lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Some cleanup patches found when reading vmalloc code. v1->v2: - In Patch 1, Uladzislau suggested a better way to improve code logic, and the NOTHING_FIT redundant checking issue naturally goes away. - Take off the old patch 5 in v1. Instead convert to use generic ioremap code in arch codes, then rename the left ioremap_page_range(). This should be done in later patches. This is suggested by Christoph. Baoquan He (4): mm/vmalloc: invoke classify_va_fit_type() in adjust_va_to_fit_type() mm/vmalloc: remove the redundant boundary check mm/vmalloc: fix typo in local variable name mm/vmalloc: Add code comment for find_vmap_area_exceed_addr() mm/vmalloc.c | 46 +++++++++++++++++----------------------------- 1 file changed, 17 insertions(+), 29 deletions(-) -- 2.34.1