ext4: Correct ext4_journalled_dirty_folio() conversion
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 29 Mar 2022 20:21:53 +0000 (16:21 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 1 Apr 2022 18:40:44 +0000 (14:40 -0400)
This should use the new folio_buffers() instead of page_has_buffers().

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Al Viro <viro@zeniv.linux.org.uk>
Acked-by: Al Viro <viro@zeniv.linux.org.uk>
fs/ext4/inode.c

index 1ce13f69fbecb2d65c21ae27f905cdd5fda0bab6..13740f2d0e6109a88bae9f83c0f1ff08bad99bce 100644 (file)
@@ -3589,7 +3589,7 @@ const struct iomap_ops ext4_iomap_report_ops = {
 static bool ext4_journalled_dirty_folio(struct address_space *mapping,
                struct folio *folio)
 {
-       WARN_ON_ONCE(!page_has_buffers(&folio->page));
+       WARN_ON_ONCE(!folio_buffers(folio));
        folio_set_checked(folio);
        return filemap_dirty_folio(mapping, folio);
 }