lkml.org 
[lkml]   [2021]   [Jun]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [PATCH v11 19/33] mm/filemap: Add folio_lock()
    Date
    Matthew Wilcox (Oracle) <willy@infradead.org> wrote:

    > This is like lock_page() but for use by callers who know they have a folio.
    > Convert __lock_page() to be __folio_lock(). This saves one call to
    > compound_head() per contended call to lock_page().
    >
    > Saves 455 bytes of text; mostly from improved register allocation and
    > inlining decisions. __folio_lock is 59 bytes while __lock_page was 79.
    >
    > Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
    > Reviewed-by: Christoph Hellwig <hch@lst.de>
    > Acked-by: Jeff Layton <jlayton@kernel.org>
    > Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
    > Acked-by: Vlastimil Babka <vbabka@suse.cz>
    > Reviewed-by: William Kucharski <william.kucharski@oracle.com>

    Reviewed-by: David Howells <dhowells@redhat.com>

    \
     
     \ /
      Last update: 2021-06-16 12:18    [W:8.962 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site