summaryrefslogtreecommitdiff
path: root/samples/hidraw/hid-example.c
diff options
context:
space:
mode:
authorAlex Shi (tencent) <alexs@kernel.org>2024-04-11 09:17:02 +0300
committerAndrew Morton <akpm@linux-foundation.org>2024-05-06 03:53:32 +0300
commitb91f94729d050eec86ae7ef084aa3805146c0a67 (patch)
tree97736e7a837dde3e1ffd583bc3a9f7f720fed090 /samples/hidraw/hid-example.c
parente9016174621112624f957c8138bd3c34692e2e93 (diff)
downloadlinux-b91f94729d050eec86ae7ef084aa3805146c0a67.tar.xz
mm/ksm: add ksm_get_folio
Patch series "transfer page to folio in KSM". This is the first part of page to folio transfer on KSM. Since only single page could be stored in KSM, we could safely transfer stable tree pages to folios. This patchset could reduce ksm.o 57kbytes from 2541776 bytes on latest akpm/mm-stable branch with CONFIG_DEBUG_VM enabled. It pass the KSM testing in LTP and kernel selftest. Thanks for Matthew Wilcox and David Hildenbrand's suggestions and comments! This patch (of 10): The ksm only contains single pages, so we could add a new func ksm_get_folio for get_ksm_page to use folio instead of pages to save a couple of compound_head calls. After all caller replaced, get_ksm_page will be removed. Link: https://lkml.kernel.org/r/20240411061713.1847574-1-alexs@kernel.org Link: https://lkml.kernel.org/r/20240411061713.1847574-2-alexs@kernel.org Signed-off-by: Alex Shi (tencent) <alexs@kernel.org> Reviewed-by: David Hildenbrand <david@redhat.com> Cc: Izik Eidus <izik.eidus@ravellosystems.com> Cc: Matthew Wilcox <willy@infradead.org> Cc: Andrea Arcangeli <aarcange@redhat.com> Cc: Hugh Dickins <hughd@google.com> Cc: Chris Wright <chrisw@sous-sol.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'samples/hidraw/hid-example.c')
0 files changed, 0 insertions, 0 deletions