diff mbox series

[2/2] ocfs2: Remove reference to bh->b_page

Message ID 20250213214533.2242224-2-willy@infradead.org (mailing list archive)
State New
Headers show
Series [1/2] ocfs2: Use memcpy_to_folio() in ocfs2_symlink_get_block() | expand

Commit Message

Matthew Wilcox Feb. 13, 2025, 9:45 p.m. UTC
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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Joseph Qi Feb. 14, 2025, 1:34 a.m. UTC | #1
On 2025/2/14 05:45, Matthew Wilcox (Oracle) wrote:
> 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>

Acked-by: Joseph Qi <joseph.qi@linux.alibaba.com>
> ---
>  fs/ocfs2/quota_global.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/fs/ocfs2/quota_global.c b/fs/ocfs2/quota_global.c
> index 15d9acd456ec..e85b1ccf81be 100644
> --- a/fs/ocfs2/quota_global.c
> +++ b/fs/ocfs2/quota_global.c
> @@ -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);
diff mbox series

Patch

diff --git a/fs/ocfs2/quota_global.c b/fs/ocfs2/quota_global.c
index 15d9acd456ec..e85b1ccf81be 100644
--- a/fs/ocfs2/quota_global.c
+++ b/fs/ocfs2/quota_global.c
@@ -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);