filemap: Drop the refcount while waiting for page lock
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 23 Dec 2021 20:17:28 +0000 (15:17 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 4 Jan 2022 18:15:34 +0000 (13:15 -0500)
commit81f4c03b7de75727be438f8f3e1683e0b0d1556a
treeaa866030a3dcaf61694940672bc37946b324adaf
parent539a3322f208db478db88c4a76239476defce6b1
filemap: Drop the refcount while waiting for page lock

Commit bd8a1f3655a7 ("mm/filemap: support readpage splitting a page")
changed the read_iter path to drop the refcount while waiting for the
page lock.  However, it missed the same pattern in read_mapping_page()
and friends.  Use the same pattern in do_read_cache_folio() that is
used in filemap_update_page().

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: William Kucharski <william.kucharski@oracle.com>
mm/filemap.c