]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
gfs2: stop using writeback internals for dirty_exceeded check
authorKundan Kumar <kundan.kumar@samsung.com>
Fri, 13 Feb 2026 05:46:33 +0000 (11:16 +0530)
committerChristian Brauner <brauner@kernel.org>
Tue, 17 Feb 2026 12:25:14 +0000 (13:25 +0100)
Convert gfs2 dirty_exceeded handling to use the writeback core helper
instead of accessing writeback directly.

Reviewed-by: Jeff Layton <jlayton@kernel.org>
Reviewed-by: Andreas Gruenbacher <agruenba@redhat.com>
Suggested-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Kundan Kumar <kundan.kumar@samsung.com>
Signed-off-by: Anuj Gupta <anuj20.g@samsung.com>
Link: https://patch.msgid.link/20260213054634.79785-4-kundan.kumar@samsung.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/gfs2/super.c

index d96160636161c8e01b65fb82196dec0f313f0455..c7dbda75af368f027595d549d6e1cd35594e2640 100644 (file)
@@ -449,7 +449,7 @@ static int gfs2_write_inode(struct inode *inode, struct writeback_control *wbc)
                gfs2_log_flush(GFS2_SB(inode), ip->i_gl,
                               GFS2_LOG_HEAD_FLUSH_NORMAL |
                               GFS2_LFC_WRITE_INODE);
-       if (bdi->wb.dirty_exceeded)
+       if (bdi_wb_dirty_exceeded(bdi))
                gfs2_ail1_flush(sdp, wbc);
        else
                filemap_fdatawrite(metamapping);