[PATCH v3 0/2] Fix false warning in inode_to_wb

From: Andreas Gruenbacher
Date: Sat Apr 12 2025 - 12:39:39 EST


Changes in v3:

- In gfs2_fill_super(), initialize sdp->sd_inode after initializing
->s_blocksize_bits so that ->i_blkbits will be set correctly.

- inode_to_wb(const struct inode *inode) no longer calls
inode_cgwb_enabled(struct inode *inode), so its argument can remain
const.

Changes in v2:

- In inode_to_wb(), only check if the SB_I_CGROUPWB flag is set so that
the consistency checks remain active even when cgroup writeback isn't
actively used.

- When new_inode() fails in gfs2_fill_super(), clean up correctly.

- Improve the description of "gfs2: replace sd_aspace with sd_inode".

Andreas Gruenbacher (1):
gfs2: replace sd_aspace with sd_inode

Jan Kara (1):
writeback: Fix false warning in inode_to_wb()

fs/gfs2/glock.c | 3 +--
fs/gfs2/glops.c | 4 ++--
fs/gfs2/incore.h | 9 ++++++++-
fs/gfs2/meta_io.c | 2 +-
fs/gfs2/meta_io.h | 4 +---
fs/gfs2/ops_fstype.c | 31 ++++++++++++++++++-------------
fs/gfs2/super.c | 2 +-
include/linux/backing-dev.h | 1 +
8 files changed, 33 insertions(+), 23 deletions(-)

--
2.48.1