linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] mm: Rework {enabled,defrag}_{show,store}
@ 2020-01-30  2:24 Gavin Shan
  2020-01-30  7:49 ` Michal Hocko
  0 siblings, 1 reply; 5+ messages in thread
From: Gavin Shan @ 2020-01-30  2:24 UTC (permalink / raw)
  To: linux-mm; +Cc: aarcange, akpm, mhocko

The inappropriate settings can be accepted by "enabled" and "defrag"
interface, as the following example shows. This series reworks the
related functions and fixes the issue by the way.

   # cat /sys/kernel/mm/transparent_hugepage/enabled
     always [madvise] never
   # echo neveroff > /sys/kernel/mm/transparent_hugepage/enabled
   # cat /sys/kernel/mm/transparent_hugepage/enabled
     always madvise [never]

Gavin Shan (3):
  mm: Rework {enabled,defrag}_store()
  mm: Rework {enabled,defrag}_show()
  mm: Rework setup_transparent_hugepage()

 mm/huge_memory.c | 216 +++++++++++++++++++++++++++--------------------
 1 file changed, 125 insertions(+), 91 deletions(-)

-- 
2.23.0



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-01-30 22:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-30  2:24 [PATCH 0/3] mm: Rework {enabled,defrag}_{show,store} Gavin Shan
2020-01-30  7:49 ` Michal Hocko
2020-01-30  9:46   ` Vlastimil Babka
2020-01-30 22:22     ` Gavin Shan
2020-01-30 22:12   ` Gavin Shan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox