memory-failure: convert truncate_error_page() to use folio
authorVishal Moola (Oracle) <vishal.moola@gmail.com>
Fri, 18 Nov 2022 07:30:54 +0000 (23:30 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 30 Nov 2022 23:59:02 +0000 (15:59 -0800)
commitac5efa782041670b63a05c36d92d02a80e50bb63
treef050364fe56ac3ff6da38e92ad5d1e77d1d85a67
parent64ab3195ea077eaeedc8b382939c3dc5ca56f369
memory-failure: convert truncate_error_page() to use folio

Replace try_to_release_page() with filemap_release_folio().  This change
is in preparation for the removal of the try_to_release_page() wrapper.

Link: https://lkml.kernel.org/r/20221118073055.55694-4-vishal.moola@gmail.com
Signed-off-by: Vishal Moola (Oracle) <vishal.moola@gmail.com>
Acked-by: Naoya Horiguchi <naoya.horiguchi@nec.com>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memory-failure.c