]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ntfs: Correct mark_ntfs_record_dirty() folio conversion
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 29 Mar 2022 20:31:41 +0000 (16:31 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 1 Apr 2022 18:40:44 +0000 (14:40 -0400)
We've already done the work of block_dirty_folio() here, leaving
only the work that needs to be done by filemap_dirty_folio().
This was a misconversion where I misread __set_page_dirty_nobuffers()
as __set_page_dirty_buffers().

Fixes: 23fcf6fc8e93 ("fs: Convert __set_page_dirty_buffers to block_dirty_folio")
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/ntfs/aops.c

index d154dcfe06afdd5f4dcd4c449ab132722ba252ec..90e3dad8ee454a65cdfe1002b69775a497a95649 100644 (file)
@@ -1746,7 +1746,7 @@ void mark_ntfs_record_dirty(struct page *page, const unsigned int ofs) {
                set_buffer_dirty(bh);
        } while ((bh = bh->b_this_page) != head);
        spin_unlock(&mapping->private_lock);
-       block_dirty_folio(mapping, page_folio(page));
+       filemap_dirty_folio(mapping, page_folio(page));
        if (unlikely(buffers_to_free)) {
                do {
                        bh = buffers_to_free->b_this_page;