bpf: Check IS_ERR for the bpf_map_get() return value
[platform/kernel/linux-starfive.git] / mm / Kconfig
index ff7b209..4751031 100644 (file)
@@ -191,6 +191,25 @@ config ZSMALLOC_STAT
          information to userspace via debugfs.
          If unsure, say N.
 
+config ZSMALLOC_CHAIN_SIZE
+       int "Maximum number of physical pages per-zspage"
+       default 8
+       range 4 16
+       depends on ZSMALLOC
+       help
+         This option sets the upper limit on the number of physical pages
+         that a zmalloc page (zspage) can consist of. The optimal zspage
+         chain size is calculated for each size class during the
+         initialization of the pool.
+
+         Changing this option can alter the characteristics of size classes,
+         such as the number of pages per zspage and the number of objects
+         per zspage. This can also result in different configurations of
+         the pool, as zsmalloc merges size classes with similar
+         characteristics.
+
+         For more information, see zsmalloc documentation.
+
 menu "SLAB allocator options"
 
 choice
@@ -1073,7 +1092,7 @@ config GUP_TEST
          pin_user_pages*(), or pinned via get_user_pages*(), as specified
          by other command line arguments.
 
-         See tools/testing/selftests/vm/gup_test.c
+         See tools/testing/selftests/mm/gup_test.c
 
 comment "GUP_TEST needs to have DEBUG_FS enabled"
        depends on !GUP_TEST && !DEBUG_FS