lkml.org 
[lkml]   [2021]   [May]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH v10 20/33] mm/filemap: Add folio_lock_killable
    From
    Date
    On 5/11/21 11:47 PM, Matthew Wilcox (Oracle) wrote:
    > This is like lock_page_killable() but for use by callers who
    > know they have a folio. Convert __lock_page_killable() to be
    > __folio_lock_killable(). This saves one call to compound_head() per
    > contended call to lock_page_killable().
    >
    > __folio_lock_killable() is 20 bytes smaller than __lock_page_killable()
    > was. lock_page_maybe_drop_mmap() shrinks by 68 bytes and
    > __lock_page_or_retry() shrinks by 66 bytes. That's a total of 154 bytes
    > of text saved.
    >
    > 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: Vlastimil Babka <vbabka@suse.cz>

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