From: "Matthew Wilcox (Oracle)" <willy@infradead.org>
To: Joseph Qi <joseph.qi@linux.alibaba.com>
Cc: "Matthew Wilcox (Oracle)" <willy@infradead.org>,
Mark Tinguely <mark.tinguely@oracle.com>,
ocfs2-devel@lists.linux.dev, linux-fsdevel@vger.kernel.org
Subject: [PATCH 2/2] ocfs2: Remove reference to bh->b_page
Date: Thu, 13 Feb 2025 18:37:28 +0000 [thread overview]
Message-ID: <20250213183730.2141556-2-willy@infradead.org> (raw)
In-Reply-To: <20250213183730.2141556-1-willy@infradead.org>
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(-)
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);
--
2.47.2
next prev parent reply other threads:[~2025-02-13 18:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-13 18:37 [PATCH 1/2] ocfs2: Use b_folio in ocfs2_symlink_get_block() Matthew Wilcox (Oracle)
2025-02-13 18:37 ` Matthew Wilcox (Oracle) [this message]
2025-02-13 18:58 ` Matthew Wilcox
-- strict thread matches above, loose matches on Subject: below --
2025-02-13 21:45 [PATCH 1/2] ocfs2: Use memcpy_to_folio() " Matthew Wilcox (Oracle)
2025-02-13 21:45 ` [PATCH 2/2] ocfs2: Remove reference to bh->b_page Matthew Wilcox (Oracle)
2025-02-14 1:34 ` Joseph Qi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250213183730.2141556-2-willy@infradead.org \
--to=willy@infradead.org \
--cc=joseph.qi@linux.alibaba.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=mark.tinguely@oracle.com \
--cc=ocfs2-devel@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).