Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp14531676rwd; Sat, 24 Jun 2023 22:46:53 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7XhzAZdqo2GZSt2nAIJgTcyBAPo1aZ9cLf7LxHnulFZdtsZSF57McYwHQbQw2/Fb/oRNaK X-Received: by 2002:a05:622a:652:b0:400:994b:218a with SMTP id a18-20020a05622a065200b00400994b218amr2935143qtb.25.1687672012882; Sat, 24 Jun 2023 22:46:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687672012; cv=none; d=google.com; s=arc-20160816; b=iRAK3BqQfEHTeGPnReugH/UGzT1sJIbuPTwXlMz2q2vFpz4ccTq5dhWSKTlKpaPdbM YV+nj6IyCwxUj17cyPxzOpZhu6/afr+kg3zyaRlWw6KqSQXcadGBffvt/BNo6eGYiTrK 2K5kZzWp2YDiHT7GAR0lVIYKh12icly0PHai/kR/ji5x1xqNRhuZiN24T00EauFVyik3 zr+TlOJrX8wMOL+INivZRKYynugRsK7XTpBRBnViMj1MqJMCJFttJbsT4mHlbbugrTV2 09bkcVqgMqZNTv3dPsmXL+2YLb8ieX32miZqmdQ8aNk1uafj/RcJATNG19rUY0l5qsXd dhrg== 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=aSn0iY+YvI3nPS0uEze9OzR+9mytNX6jsrJ/kVoH//w=; fh=iae8W7+YsuOdP40WCytoCMmYg2BD/IEWEocE6dbe21o=; b=ZP3epKzQyMt3hA4hqfnW3x0XCJfB11Qz9iXoRg/YbqXJpP+29kLv/YCps3555bl+u4 HNkIkqfYp25/kW1wOx6VbCdVzIPJ2f8wCZk6zloswfpWd9TipMgYLzVvcdnC44Pdja7S 2iu23H2giyMXovH1BUndUUWGf8g/0hxDdklRsGtyvBfeRMBlZQd17CxRjoqX/1M0rqeb PBvVbd+7QjYH2cH1HJX/J6oK51+bL0CZYA/SqeFs6t0i++fR/7enkuB2MdxHT71Ri6fd 6dZ7sd5GvU2pArePI3dDDcsjZ1q45pU/BSMILvN9tSTVIfhikuBBEeXDFE42OX1vqyZI +mZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nOqeEhrP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o17-20020a056a0015d100b006686a20f78asi2641823pfu.124.2023.06.24.22.46.40; Sat, 24 Jun 2023 22:46:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nOqeEhrP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231213AbjFYFJk (ORCPT + 99 others); Sun, 25 Jun 2023 01:09:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231467AbjFYFJi (ORCPT ); Sun, 25 Jun 2023 01:09:38 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C28CE5F for ; Sat, 24 Jun 2023 22:09:37 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 18DD060B4E for ; Sun, 25 Jun 2023 05:09:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8E3ACC433C8; Sun, 25 Jun 2023 05:09:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1687669776; bh=9TjHg174JU3wdRRc2lXHEFu4QZLNSYyfqLS9/q0v5U8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nOqeEhrPai+VRft4rQv+/8qZsDxqZCeuCi6zy6MF/TMaahoppfs1wJT/tPmM5d6D0 zSKN6bVqQvzBbT93alGKwN0B1XSdSUktjPtqt6BvaCsVgfjep7OchsyMQlNCqeYuDS yJtnkEePGT7ntBTjlUXkif/FZf/8EYklGaRF8VpVRc8BtiPHJoTYsjgghzaaF6AXhY rA/f8UqPqmh1bvxIZ/fxVnVlPd3w7De4L9Ta2JEdUU9ILtz5enUWYrnESdkKXxvUX/ o+/bYtd3xy/FlESMBTuyaBePvVV9hgKhVbQSd7k/x7hmZrXhcjXcMO1mHobaitlDNt nG98OhMODfInw== Date: Sun, 25 Jun 2023 08:08:50 +0300 From: Mike Rapoport To: Yajun Deng Cc: akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] memblock: Introduce memblock_reserve_node() Message-ID: <20230625050850.GJ52412@kernel.org> References: <20230624024622.2959376-1-yajun.deng@linux.dev> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230624024622.2959376-1-yajun.deng@linux.dev> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Sat, Jun 24, 2023 at 10:46:22AM +0800, Yajun Deng wrote: > It only returns address now in memblock_find_in_range_node(), we can add a > parameter pointing to integer for node id of the range, which can be used > to pass the node id to the new reserve region. > > Introduce memblock_reserve_node() so that the node id can be passed to > the reserve region in memblock_alloc_range_nid(). > > Signed-off-by: Yajun Deng What problem does this patch solve? -- Sincerely yours, Mike.