Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp2118926pxb; Fri, 8 Oct 2021 00:54:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxotxZ99WDegam4uyt8TqM/XcjAFtLO805bpv9su5+fyRYGZuNPTz9ljxlVJh61Iluo8I5A X-Received: by 2002:a63:5914:: with SMTP id n20mr3395750pgb.164.1633679692429; Fri, 08 Oct 2021 00:54:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633679692; cv=none; d=google.com; s=arc-20160816; b=SV+9XCpleZFeVqeWOKH3f2U4SptYv9a/hndyd9MuQzsGeAvRXObHMgZzyWPEcw6R8V hbsoJKRh2l4V+dYdmelnuahqPooMD5t8JxNYIDE4QckYpCyKfSwam9hLn5IUzx67h9fD KZTo6T/y1NlXRaN0L5QculCYrSGaz7vQytlFx5NZvTZ4zMcA+XhXe82Oo7EEqS9KbikF DJ7R6JPizgd3OujwsSwNbU/Y7n8xAls/VYZ2ctKt4UfadDdRiA1iTmqwxFJE4mUId7mv qfAYMVNNvwJc40udW6lRakD6QFn06l4gAXO4uEP+OG7c4XjZT8vQEpNO9YUmEf2vf5GK 6IIw== 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 :dkim-signature; bh=/owKRIBy8QtnuKnOdnRpPLlosxOa0SrXgN0hyqRt9xg=; b=wPyOMMuHCJRJNgfjs68Imik6jxh+0OTSCeMqDIz7gG0mkSdDsyMMjF2WA8JUOfKsqz 1wdvOOs4iF0zOCZe2hxempInAkBrI/kT+LXpl2OsvjPN1OWeAKD4GIlOhOSvD8iRvAUN hT8jls/Ttc6tNqGkOhXO98rMf2XjrsGZ5Gl7sOKWsPkwAbcgOlAm29kpj5QndDROS95v KU5iAPjAsC0i4LNAhpTV2HbU8hZ8cUml8FLm5zctG29g8NR6KQBAyhEwrFewzUeYfEyL Tld1W0/3YQNdN0owT6xzRf2n2vHEPqKdGTxWPlTCoBH9E3Tm5snpm4D5p1/HZbndRwQt od+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=zMUTeLKy; dkim=neutral (no key) header.i=@suse.de header.b=3C0EexQ5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 35si2023281pgq.480.2021.10.08.00.54.39; Fri, 08 Oct 2021 00:54:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=zMUTeLKy; dkim=neutral (no key) header.i=@suse.de header.b=3C0EexQ5; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232646AbhJHHzy (ORCPT + 99 others); Fri, 8 Oct 2021 03:55:54 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:38718 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231749AbhJHHzw (ORCPT ); Fri, 8 Oct 2021 03:55:52 -0400 Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 0FBAA22312; Fri, 8 Oct 2021 07:53:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1633679637; h=from:from:reply-to: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=/owKRIBy8QtnuKnOdnRpPLlosxOa0SrXgN0hyqRt9xg=; b=zMUTeLKyPWEoEkWqQXJdLOA/v+Aadj6rkC6ZqDR+YcEwVg5PfKkPofIkbv9IuGhkf9JSR+ zCMTnBltuTcX/aCAlLJjDdyjDYqltk801kr865zXewc+Y4brHpCkfTXzkUyWhO9KWX+rdc 6PO+u+QrELHslYcat8xV8AhdB4+BAok= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1633679637; h=from:from:reply-to: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=/owKRIBy8QtnuKnOdnRpPLlosxOa0SrXgN0hyqRt9xg=; b=3C0EexQ5YXKpYqHO2LwTUErROHz7vn8QKJe8+ZA8j/ilFhl/QFz01WLpeAkt4e+KN8I4V3 NPoKjHvgwg/v8CAw== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 3CC5113B56; Fri, 8 Oct 2021 07:53:56 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 1eN/CxT5X2G7VQAAMHmgww (envelope-from ); Fri, 08 Oct 2021 07:53:56 +0000 Date: Fri, 8 Oct 2021 09:53:54 +0200 From: Oscar Salvador To: Mike Kravetz Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, David Hildenbrand , Michal Hocko , Zi Yan , Muchun Song , Naoya Horiguchi , David Rientjes , "Aneesh Kumar K . V" , Nghia Le , Andrew Morton Subject: Re: [PATCH v4 2/5] mm/cma: add cma_pages_valid to determine if pages are in CMA Message-ID: References: <20211007181918.136982-1-mike.kravetz@oracle.com> <20211007181918.136982-3-mike.kravetz@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211007181918.136982-3-mike.kravetz@oracle.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 07, 2021 at 11:19:15AM -0700, Mike Kravetz wrote: > Add new interface cma_pages_valid() which indicates if the specified > pages are part of a CMA region. This interface will be used in a > subsequent patch by hugetlb code. > > In order to keep the same amount of DEBUG information, a pr_debug() call > was added to cma_pages_valid(). In the case where the page passed to > cma_release is not in cma region, the debug message will be printed from > cma_pages_valid as opposed to cma_release. > > Signed-off-by: Mike Kravetz > Acked-by: David Hildenbrand Reviewed-by: OScar Salvador -- Oscar Salvador SUSE Labs