]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
powerpc/64s/hash: Hash hpt_order should be only available with Hash MMU
authorRitesh Harjani (IBM) <ritesh.list@gmail.com>
Thu, 30 Oct 2025 14:57:31 +0000 (20:27 +0530)
committerMadhavan Srinivasan <maddy@linux.ibm.com>
Tue, 18 Nov 2025 07:05:52 +0000 (12:35 +0530)
This disables creating hpt_order debugfs entry with radix mode.

Signed-off-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/99237176a51c73e85f4a7edd60a2460017882d69.1761834163.git.ritesh.list@gmail.com
arch/powerpc/mm/book3s64/hash_utils.c

index 2fa98d26876a0d2dad59094243d2b8e82b8995a6..e63befc9670801102bc057c3d56366e291c7a2b8 100644 (file)
@@ -2434,6 +2434,8 @@ DEFINE_DEBUGFS_ATTRIBUTE(fops_hpt_order, hpt_order_get, hpt_order_set, "%llu\n")
 
 static int __init hash64_debugfs(void)
 {
+       if (radix_enabled())
+               return 0;
        debugfs_create_file("hpt_order", 0600, arch_debugfs_dir, NULL,
                            &fops_hpt_order);
        return 0;