Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp1453903lqt; Fri, 7 Jun 2024 21:27:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV2q2YPGmOALH54Vdy6rSeKP8lbN59P5gLPGJjegs9Mo7cK8zwN2sf9ppnWskJsvmFQPUx5y26AObE4LLw/a9TjUpTVhQC98G2fBDLR7w== X-Google-Smtp-Source: AGHT+IEQXKu0ZtRHkFyRO7AehWiiUqz+dYx7jNhmlObT6f8Ug9Vb8xiOlpjFQtptdgExiOuZV+Tq X-Received: by 2002:a05:6358:4327:b0:186:5c1:1dd1 with SMTP id e5c5f4694b2df-19f1feb7303mr617502855d.19.1717820865597; Fri, 07 Jun 2024 21:27:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717820865; cv=pass; d=google.com; s=arc-20160816; b=DX/Rv67FcqoJOwFiZZ25pYRrAfhh4fCuuJZPGEiPFcyDpmvGtVNXMurpMZRzZdZ5Tz OhTZGvkiDrrGMVybMH7WTRAJ1TIgjNa6j8c0LiZywzVGy+iBcPownBjFfhvJySKXP/Qv AOWfmNZuM+hHVqv/HTWCmA2LhQJUVp+BfxihuZOsgBRpWzupbFy/rfOq+34Ny6a+AwZp QPUu0MDge3LwpqzrHkS7iZVVG4y1D/2GXBriTgP5c8VyfeXF8yQMEbN1HYqHjkm2zQpP AwEFsQS4SOJ1PtkJNONY/omSUj/T6bQqrraBl7CnuCOCScw7/RxZ54oN/rnW2Cb5yrdF WxxA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=y+bxrfwaLeJblJYdYvLjkh6/BIFaUGcGXPL7eUr/BOI=; fh=12QnwBLCRmbCOxhhyif9ewavNB3mSD0GGZ6SNA+eioM=; b=ElpCwcqtpqRvNz+QlNVNVlZNyisA9myfBKPa7N6enLjNrwmuhGzKbsM0SiK2k4vos9 7PUuj4RAc6aWly+mUl06WzejGybZyWtDbyHKgViwJYQFE2lQfbi7BTMfm4N82omX7+Ei Lb/fRk9BHkQLQ9wn/kP6mRysyaax3LbBD336AbJmnRv6O5ndsOek0egPwIUX/qIUD7V9 9WMXeGkvMN9CompcPoZ9vajJpHdpBT1FAhZKtZ5ndkHycTL65jAmoAeyXp+o7p1nlV59 u8ikhWlsWIdOW/sVQdk5GAedO0yRTMyjJncfEnhOm0zAp8fB/NN+knn9fXhYeuPvoMO4 QDZA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=nPNnqtW2; arc=pass (i=1 dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-206901-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206901-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6de20831de8si4309838a12.150.2024.06.07.21.27.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 21:27:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-206901-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=nPNnqtW2; arc=pass (i=1 dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-206901-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206901-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id C75F5282DE4 for ; Sat, 8 Jun 2024 04:27:44 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4170E1078B; Sat, 8 Jun 2024 04:27:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="nPNnqtW2" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6407FC2E9; Sat, 8 Jun 2024 04:27:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717820859; cv=none; b=tOVzQjMZTjhvyeE6WeuWs4KWLp4xQCkTWrODCcvSVPi34d5RvM0PmeqP+tw0CPV3zQXwViYoPq4oQVYFCDbyBPAaEESwPx3VIHi7YJyNzaUjBJncw8JR0FBBeT6wy4im9qD12eg5HXWcmylfBZ+CxrsJsyo+EZUn6k8wWBR5Xmg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717820859; c=relaxed/simple; bh=G3GoFdX96mK6HyzLxQ8Jmg4Jk5/2/ZubK6p1ksrewKM=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=DNEX6xA0rE9xwgOc1XlWrryFpFoPIs+xX7gfs8L4fm4GcbVVMWpY/RDzYGjKHricjKDFSZDpRYdk1XFu/mkWqHQWyaXDZdQ1zV2lb4g0ub1XZu6FImugqflsdVauXgj360U3XK6rLdKrhgDPpR16TC+7y07T7kUHQXiULY5htrY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=nPNnqtW2; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id AD24DC2BD11; Sat, 8 Jun 2024 04:27:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1717820859; bh=G3GoFdX96mK6HyzLxQ8Jmg4Jk5/2/ZubK6p1ksrewKM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=nPNnqtW27pDyI8VUEojiXdVrfnbTy1h6O2KDNvm2Fr32HliedMrnEK421WhPXFbJ7 Qvk5HtbqY76xqOJ7oOLSrZk7xUqj3+99Ufwgd0BI81ehY3Wv1QIyTMCA3kwDJA86au 016UhGyaJJOjfhFBksvSRaLUUTQTtXGklk0JctvM= Date: Fri, 7 Jun 2024 21:27:38 -0700 From: Andrew Morton To: Stephen Brennan Cc: linux-mm@kvack.org, Vlastimil Babka , "Vishal Moola (Oracle)" , Omar Sandoval , David Hildenbrand , "Matthew Wilcox (Oracle)" , Hao Ge , linux-debuggers@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v4] mm: convert page type macros to enum Message-Id: <20240607212738.bf55318aebd7172fadaa11c5@linux-foundation.org> In-Reply-To: <20240607202954.1198180-1-stephen.s.brennan@oracle.com> References: <20240607202954.1198180-1-stephen.s.brennan@oracle.com> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Fri, 7 Jun 2024 13:29:53 -0700 Stephen Brennan wrote: > Changing PG_slab from a page flag to a page type in commit 46df8e73a4a3 > ("mm: free up PG_slab") in has the unintended consequence of removing > the PG_slab constant from kernel debuginfo. The commit does add the > value to the vmcoreinfo note, which allows debuggers to find the value > without hardcoding it. However it's most flexible to continue > representing the constant with an enum. To that end, convert the page > type fields into an enum. Debuggers will now be able to detect that > PG_slab's type has changed from enum pageflags to enum pagetype. > > Fixes: 46df8e73a4a3 ("mm: free up PG_slab") Should we backport this into 6.9.x?