Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp2120041pxb; Fri, 8 Oct 2021 00:57:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwG0DXtGqWVVPJffawY4f8ZxGO3eX3/IKd2iAYThbJDUWIR8yN9ZeV9f9LK0TfwCpbQtXcv X-Received: by 2002:a17:90a:c982:: with SMTP id w2mr10023176pjt.30.1633679821995; Fri, 08 Oct 2021 00:57:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633679821; cv=none; d=google.com; s=arc-20160816; b=otwywkD4FauJuSUlqkn8lxrhXWr3Cktp5qmzmTFMspzfzP8sQ7wT3Uo/HwVYtpP9Dq GAIHqj5PqqOu/GEOGZSFxIwlSC+FHhZruauymVExY1Gq7wFDQ0QHkXbbigQ+3EE3LqFa ITctWVu45AJXVDZIQILsrcXQRYD1Zt3SoU/gthb/nneH3iTe5/c9n12xDJCKt272FNk2 kEGwclQeOjnZcUOuwffrr8JZglOo1lAJ5EQyecH1mbxiu3+GOkDmx+n3N/azU7TovBR2 XfLfgCaTUMImEv2vwrd706vxTK8Utr0dCn/35kWnXlnFGErQKdv3HWK4mYweqnTLjC0x Q8tA== 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=en+LBPzJUAQChT1hY8aBHGoPQmZKo+7K2K+Rm3A8uIY=; b=FEeMc4aDny5V1UjZJvjR+lDvpiF4KcHFJv/WGRDwq0MfwvtiCFY2Ae03x+P4AN+WSQ Uc8zCJU0eTzwd4b6dP5XDT04mHDEDZoWnQlwiATKzGD8PTzJJMRFqLEnUa69A1QRCkIT KYggy0DfKWdU2GtQWQpAulC+usxjQswUJGMtahjZ6N0BLoLhBOh92Y+jDb6YeECA0KF5 MK0fbtWMBJ3A+AfqpurUNGlNukslpGi3wi5KpB+V1odILFmitRmSShsrrCLey+is4c63 APFt25i7PC0JsJgOpqvBPIz9DirkZBqDHzWPWfzvahGun2FRWCcNIt0RUgLIC1Kw05qE AuWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=IoORjkEO; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=qrjH2ZVl; 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 h8si2065095pjk.138.2021.10.08.00.56.49; Fri, 08 Oct 2021 00:57:01 -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=IoORjkEO; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=qrjH2ZVl; 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 S232031AbhJHH5S (ORCPT + 99 others); Fri, 8 Oct 2021 03:57:18 -0400 Received: from smtp-out1.suse.de ([195.135.220.28]:39332 "EHLO smtp-out1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229693AbhJHH5R (ORCPT ); Fri, 8 Oct 2021 03:57:17 -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 48A0221D6C; Fri, 8 Oct 2021 07:55:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1633679722; 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=en+LBPzJUAQChT1hY8aBHGoPQmZKo+7K2K+Rm3A8uIY=; b=IoORjkEOs8PM2TqCeMCvyJ12zq1cv6FnYiW8lYDhu+kIC9aP58l5X/L3A0BmGRKHNOtkCN kbpoOvQW4jhh9sb3a4N2c8T5pM9bcSE5woIjZLwr60VICRUJEgtR0mwZZ9N4fYT6i+bqF4 s3YzttAGNR8Y9g4dgrK4gtJvhakPMx8= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1633679722; 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=en+LBPzJUAQChT1hY8aBHGoPQmZKo+7K2K+Rm3A8uIY=; b=qrjH2ZVlXzMAfbKreDXWVNyqJYjnqm3pP0+upTQGxn8XUOy2HORMjZNPSWg7vRBhXmJCe/ ojqnks7SGAR0QBCQ== 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 9C51F13D36; Fri, 8 Oct 2021 07:55:21 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id Kmh1I2n5X2GzVgAAMHmgww (envelope-from ); Fri, 08 Oct 2021 07:55:21 +0000 Date: Fri, 8 Oct 2021 09:55:19 +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: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 08, 2021 at 09:53:54AM +0200, Oscar Salvador wrote: > 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 Fat fingers: s/OScar/Oscar -- Oscar Salvador SUSE Labs