From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qv1-f44.google.com (mail-qv1-f44.google.com [209.85.219.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D118349620 for ; Thu, 30 Jul 2026 06:33:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785393186; cv=none; b=RfR9z2/v5oO5yMPsRjPSr5+x52db0r8ft0AJ+Z74aH2cRQ5eL3fawRoRsvSzBLvT0eAvpwLQ+qznrUL8TrpYf6pNGjaQyFVWW1OXcIG8w3NecTo+bbAPIASGQyTzTgL3IgFoSEN6UpqkPfn1svXlaH3oL2DFlHSLBs5m2j7s64A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785393186; c=relaxed/simple; bh=mE0FCmxFAcg8+2FAt8rKZAFyLmmxB6bNkFOqEWN8ZzM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=jjvOTmd4l4S2gh50J5r6l5FPemZwUarlGuCzo7Gkqpbt9tQKabrK5OIzeme0/CvbHWcFmbc5wlM45ICL5/k37ixsU0zTusEqqUNTG0iaWtq23oViW1Pql/VmzdzagTDERDRjbytIygDmbNkAInZWS2LFKNI/8lrgcT5fwX4DfUo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=gourry.net; spf=pass smtp.mailfrom=gourry.net; dkim=pass (2048-bit key) header.d=gourry.net header.i=@gourry.net header.b=jJU9QT8y; arc=none smtp.client-ip=209.85.219.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=gourry.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gourry.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gourry.net header.i=@gourry.net header.b="jJU9QT8y" Received: by mail-qv1-f44.google.com with SMTP id 6a1803df08f44-908239232adso2565566d6.1 for ; Wed, 29 Jul 2026 23:33:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gourry.net; s=google; t=1785393183; x=1785997983; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=bSQdFbtMw22wegisDIIs9GXGwF8lm4tP2s7WAQxucNU=; b=jJU9QT8yJtCAp65+9EuO3Geo3Vhl1afACkQb/QTuW4PGYHwwpsdgJEMFkuDag/6kk7 m7LGrtoq9CWm0jj+oNAAnFIJ+1uA1OuB4R38o8IGEQRB8D4Bc5OoG87rt7KBedmO54Q8 /ITFQjtFaTt/hyWdZH2vHU5Flo/tI+o4EDNXU+g0lI2BWO17OKpWMtBSZxFFxYOOb7Ei 7UeJW4ljRCF4HQ6VSnXxTaUs5lZq4ai1qnnTtYd7kN9ehYyQjgbL/AeDDO592uBoRXYy Jsk3GaqMFEtSsfWznYZs/1Xv13b8+Cm3s/EkNXi7G3oe2tes9DXNWV7zCrT9T6cPFpRh ep1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785393183; x=1785997983; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=bSQdFbtMw22wegisDIIs9GXGwF8lm4tP2s7WAQxucNU=; b=f/RlT0C18zbgTiU9Q7fqJXZmfK4r8wQyVg575VBuobjXkY2IsABjNTJg7nO5pCMk1a 6JuQKwVSKQc5XWSztYNiJvd0fINx1YRBL/0uBbrwySMciY8ALqkDF9E20zHb00ywukuJ K6VhI9UPDWp+BdJB11l8riPfMdOh7tSY8CnppGWLfAfxopWJiWHrhUkCceHeX1fkVUE3 h4SVCDN1W+x7BB7hsOhKovlELmLD1JWU/Ywa+zptakrremmvUTxXP3ow+nWIyumt0EU2 YNPB21qdpTI3RG80bafAwoVLNndjRkHwrS54iH7wykwypYHZLyMLG0cODhEyNKfHjY+r Q3nw== X-Forwarded-Encrypted: i=1; AHgh+RrSnbH76fcGPdcs6r2MsHOhqZZXLGNf39tA9QjVNELpHh0yvUYS/RxqmzkOxUt5oUfK80yIUednxVSupXg=@vger.kernel.org X-Gm-Message-State: AOJu0YzaL8+/+yl4GEOZugDYd/tp71RcxpEF/LXbWogAhX6A3OSf6Vl/ xSLVAG/5++Ou4f9VcZaQuVEaUHOvAbey8J9jLH3zP/qneGS3E+OIkm4eBXuE+nL5uG8= X-Gm-Gg: AR+sD139KJ8AS+oCq3jztqG46CEqY8gZkW2C+QgFW5dVjcjjhK8YG48Tqv0SldzRL0w RWrT1fWH2jWUpFvtMscJBxEm39ZJG5pV3yF3v511PLeyfBXPTUdKdJFofsEhv43pgNd4twtMy0V vJIzLV/gJ0FSbx7SlhtaYplQZye6LRhMtU0GeOZbAobDVBGsK/vE+UtZDiTBgYC+I3lm4B697xb pWrc801j/QP7KWICbbjcfYPujZ2n4vjq1C3KtaiGLeEQrsjE2447/dkTVC8JnhJyhuvOj/MUi2B 61O2wbnGq3vJ9frGzniBKz3R4atnOlAh62xKPDdno5CZHG/zZzYO05oBmKiHniZlKmpVj4zfzeM 8ktALpARaDmu4CFdVXHRm0rHesDmaHOqarvXlN0M2XgeTiTaTrqhWd2CcuYAt2pVA7k2VyF+ubk RX348IVqchCFHLASZJAySEYfBuzWRGnTfuTuB6LT+91A/uysAbrfeTASMyJdsfOoI2c7nu1fsEi JCeeRPEJ5J6BARiqYOzOe2xKYk0KxrbTaUT4GftrF9pKBvP+JIHnpo= X-Received: by 2002:a05:6214:4b03:b0:907:8960:fb59 with SMTP id 6a1803df08f44-908351168b4mr10279196d6.34.1785393182683; Wed, 29 Jul 2026 23:33:02 -0700 (PDT) Received: from gourry-fedora-PF4VCD3F (pool-173-79-60-52.washdc.fios.verizon.net. [173.79.60.52]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-908323e7697sm10555086d6.25.2026.07.29.23.33.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Jul 2026 23:33:01 -0700 (PDT) Date: Thu, 30 Jul 2026 02:32:59 -0400 From: Gregory Price To: "Lorenzo Stoakes (ARM)" Cc: Andrew Morton , David Hildenbrand , "Liam R. Howlett" , Vlastimil Babka , Mike Rapoport , Suren Baghdasaryan , Michal Hocko , Jann Horn , Pedro Falcato , "Matthew Wilcox (Oracle)" , Jan Kara , Miaohe Lin , Naoya Horiguchi , Rik van Riel , Harry Yoo , Lance Yang , Kees Cook , Zi Yan , Baolin Wang , Nico Pache , Ryan Roberts , Dev Jain , Barry Song , Usama Arif , Matthew Brost , Joshua Hahn , Rakie Kim , Byungchul Park , Ying Huang , Alistair Popple , Peter Xu , Xu Xin , Chengming Zhou , Arnd Bergmann , Greg Kroah-Hartman , linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [PATCH v3 04/15] mm: update print_bad_page_map() to show anonymous page index Message-ID: References: <20260729-b4-scalable-cow-virt-pgoff-v3-0-e8ecfefea812@kernel.org> <20260729-b4-scalable-cow-virt-pgoff-v3-4-e8ecfefea812@kernel.org> 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-Disposition: inline In-Reply-To: <20260729-b4-scalable-cow-virt-pgoff-v3-4-e8ecfefea812@kernel.org> On Wed, Jul 29, 2026 at 05:48:39PM +0100, Lorenzo Stoakes (ARM) wrote: > This is potentially useful debugging information and matches the existing > page offset provided. > > Use the raw __linear_anon_page_index() function so as to always output this > value regardless of whether the mapping is file-backed or not. > Begs the question whether we should mark the value based on whether it is file backed or not, but i suppose you can gleen that from the other printed values (anon_mem, mapping, vm_ops, etc). > Signed-off-by: Lorenzo Stoakes (ARM) Reviewed-by: Gregory Price (Meta)