diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2021-03-02 01:38:25 +0100 |
---|---|---|
committer | Matthew Wilcox (Oracle) <willy@infradead.org> | 2021-09-27 15:27:30 +0200 |
commit | 7c23c782d5d57df97509ed2fc17f9b9490f18f1b (patch) | |
tree | b4669c3184c0f795c5c15b086a0257abed664571 /certs/blacklist.c | |
parent | mm/filemap: Add folio_unlock() (diff) | |
download | linux-7c23c782d5d57df97509ed2fc17f9b9490f18f1b.tar.xz linux-7c23c782d5d57df97509ed2fc17f9b9490f18f1b.zip |
mm/filemap: Add folio_lock()
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>
Acked-by: Mike Rapoport <rppt@linux.ibm.com>
Diffstat (limited to 'certs/blacklist.c')
0 files changed, 0 insertions, 0 deletions