migrate: use folio_set_bh() instead of set_bh_page()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 13 Jul 2023 03:55:09 +0000 (04:55 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 18 Aug 2023 17:12:30 +0000 (10:12 -0700)
This function was converted before folio_set_bh() existed.  Catch up to
the new API.

Link: https://lkml.kernel.org/r/20230713035512.4139457-5-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Jan Kara <jack@suse.cz>
Cc: Alexander Viro <viro@zeniv.linux.org.uk>
Cc: Christian Brauner <brauner@kernel.org>
Cc: David Sterba <dsterba@suse.com>
Cc: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
Cc: Nathan Chancellor <nathan@kernel.org>
Cc: Nick Desaulniers <ndesaulniers@google.com>
Cc: Pankaj Raghav <p.raghav@samsung.com>
Cc: "Theodore Ts'o" <tytso@mit.edu>
Cc: Tom Rix <trix@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/migrate.c

index e9821e245e7036df7b555da4a9840cc0fe980604..e21d5a7e7447ecf6aa1250b8750b44764dcc9177 100644 (file)
@@ -773,7 +773,7 @@ recheck_buffers:
 
        bh = head;
        do {
-               set_bh_page(bh, &dst->page, bh_offset(bh));
+               folio_set_bh(bh, dst, bh_offset(bh));
                bh = bh->b_this_page;
        } while (bh != head);