public inbox for linux-s390@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Convert some gmap functions to use folios
@ 2024-03-22 16:11 Matthew Wilcox (Oracle)
  2024-03-22 16:11 ` [PATCH 1/2] s390: Convert make_page_secure to use a folio Matthew Wilcox (Oracle)
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Matthew Wilcox (Oracle) @ 2024-03-22 16:11 UTC (permalink / raw)
  To: Heiko Carstens, Vasily Gorbik, Alexander Gordeev
  Cc: Matthew Wilcox (Oracle), linux-s390

struct page is going to lose its refcount (someday) and as part of
that page_ref_freeze() will go away.  s390's ultravisor is one of
the few remaining places that uses it, so convert it over to folios.
From previous interactions, I understand that ultravisor doesn't support
large folios, so this simply declines to make large folios secure.
I think you'd be better off splitting the folio if it is large, but
that's something I'd rather leave to someone who can test it.

These patches do have the effect of making this more efficient; we lose
at least five hidden calls to compound_head().

Matthew Wilcox (Oracle) (2):
  s390: Convert make_page_secure to use a folio
  s390: Convert gmap_make_secure to use a folio

 arch/s390/kernel/uv.c | 50 +++++++++++++++++++++++--------------------
 1 file changed, 27 insertions(+), 23 deletions(-)

-- 
2.43.0


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

end of thread, other threads:[~2024-04-08 15:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-22 16:11 [PATCH 0/2] Convert some gmap functions to use folios Matthew Wilcox (Oracle)
2024-03-22 16:11 ` [PATCH 1/2] s390: Convert make_page_secure to use a folio Matthew Wilcox (Oracle)
2024-03-22 16:11 ` [PATCH 2/2] s390: Convert gmap_make_secure " Matthew Wilcox (Oracle)
2024-03-26  7:41 ` [PATCH 0/2] Convert some gmap functions to use folios Heiko Carstens
2024-04-04 13:38   ` Matthew Wilcox
2024-04-04 14:56     ` Claudio Imbrenda
2024-04-08 15:20 ` Alexander Gordeev

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