mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
mm/thp: dead code cleanup in Kconfig
There is already an 'if TRANSPARENT_HUGEPAGE' condition wrapping several config options e.g. 'READ_ONLY_THP_FOR_FS', making the 'depends on' statement for each of these a duplicate dependency (dead code). I propose leaving the outer 'if TRANSPARENT_HUGEPAGE...endif' and removing the individual 'depends on TRANSPARENT_HUGEPAGE' statement from each option. This dead code was found by kconfirm, a static analysis tool for Kconfig. Link: https://lore.kernel.org/20260331070730.33915-1-julianbraha@gmail.com Signed-off-by: Julian Braha <julianbraha@gmail.com> Reviewed-by: Lorenzo Stoakes <ljs@kernel.org> Acked-by: David Hildenbrand (Arm) <david@kernel.org> Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: Liam Howlett <liam@infradead.org> Cc: Michal Hocko <mhocko@suse.com> Cc: Mike Rapoport <rppt@kernel.org> Cc: Suren Baghdasaryan <surenb@google.com> Cc: Vlastimil Babka <vbabka@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
parent
1d05e1f6ac
commit
b9fe373e7d
|
|
@ -810,7 +810,6 @@ if TRANSPARENT_HUGEPAGE
|
|||
|
||||
choice
|
||||
prompt "Transparent Hugepage Support sysfs defaults"
|
||||
depends on TRANSPARENT_HUGEPAGE
|
||||
default TRANSPARENT_HUGEPAGE_ALWAYS
|
||||
help
|
||||
Selects the sysfs defaults for Transparent Hugepage Support.
|
||||
|
|
@ -840,7 +839,6 @@ endchoice
|
|||
|
||||
choice
|
||||
prompt "Shmem hugepage allocation defaults"
|
||||
depends on TRANSPARENT_HUGEPAGE
|
||||
default TRANSPARENT_HUGEPAGE_SHMEM_HUGE_NEVER
|
||||
help
|
||||
Selects the hugepage allocation policy defaults for
|
||||
|
|
@ -886,7 +884,6 @@ endchoice
|
|||
|
||||
choice
|
||||
prompt "Tmpfs hugepage allocation defaults"
|
||||
depends on TRANSPARENT_HUGEPAGE
|
||||
default TRANSPARENT_HUGEPAGE_TMPFS_HUGE_NEVER
|
||||
help
|
||||
Selects the hugepage allocation policy defaults for
|
||||
|
|
@ -931,7 +928,7 @@ endchoice
|
|||
|
||||
config THP_SWAP
|
||||
def_bool y
|
||||
depends on TRANSPARENT_HUGEPAGE && ARCH_WANTS_THP_SWAP && SWAP && 64BIT
|
||||
depends on ARCH_WANTS_THP_SWAP && SWAP && 64BIT
|
||||
help
|
||||
Swap transparent huge pages in one piece, without splitting.
|
||||
XXX: For now, swap cluster backing transparent huge page
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user