Re: [PATCH v6 17/27] mm/filemap: Add lock_folio

2021-04-06 Thread Christoph Hellwig
Looks good, Reviewed-by: Christoph Hellwig

[PATCH v6 17/27] mm/filemap: Add lock_folio

2021-03-31 Thread Matthew Wilcox (Oracle)
This is like lock_page() but for use by callers who know they have a folio. Convert __lock_page() to be __lock_folio(). This saves one call to compound_head() per contended call to lock_page(). Saves 362 bytes of text; mostly from improved register allocation and inlining decisions. __lock_folio