]> www.infradead.org Git - users/willy/pagecache.git/commitdiff
ocfs2: Remove reference to bh->b_page
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 24 Dec 2024 21:18:40 +0000 (16:18 -0500)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 13 Feb 2025 21:43:55 +0000 (16:43 -0500)
Buffer heads are attached to folios, not to pages.  Also
flush_dcache_page() is now deprecated in favour of flush_dcache_folio().

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
fs/ocfs2/quota_global.c

index 15d9acd456ecce6eb4f5fa8807e9f723ee61ae50..e85b1ccf81be08e1df599b501fd3bcf1155d5b5a 100644 (file)
@@ -273,7 +273,7 @@ ssize_t ocfs2_quota_write(struct super_block *sb, int type,
        if (new)
                memset(bh->b_data, 0, sb->s_blocksize);
        memcpy(bh->b_data + offset, data, len);
-       flush_dcache_page(bh->b_page);
+       flush_dcache_folio(bh->b_folio);
        set_buffer_uptodate(bh);
        unlock_buffer(bh);
        ocfs2_set_buffer_uptodate(INODE_CACHE(gqinode), bh);