[PATCH v2 0/4] Avoid filesystem references to writeback internals

Kundan Kumar posted 4 patches 1 month, 2 weeks ago
fs/f2fs/node.c              |  4 ++--
fs/f2fs/segment.h           |  2 +-
fs/gfs2/super.c             |  2 +-
fs/nfs/internal.h           |  2 +-
fs/nfs/write.c              |  3 +--
include/linux/backing-dev.h | 13 +++++++++++++
6 files changed, 19 insertions(+), 7 deletions(-)
[PATCH v2 0/4] Avoid filesystem references to writeback internals
Posted by Kundan Kumar 1 month, 2 weeks ago
The series introduces writeback helper APIs and converts f2fs, gfs2
and nfs to stop accessing writeback internals directly.

As suggested by Christoph [1], filesystem code that directly accesses
writeback internals is split out:
[1] https://lore.kernel.org/all/20251015072912.GA11294@lst.de/

No functional changes intended.

Changes since v1:
1) Added comment indicating that these functions shall not be used by
   filesystems that support cgroup writeback. (Christoph)
2) Pass inode instead of bdi for modifying writeback accounting stats,
   will make it easier to select proper wb context for the upcoming
   parallel writeback patches. (hence dropped the previous reviewed-bys
   for patch 4)

Kundan Kumar (4):
  writeback: prep helpers for dirty-limit and writeback accounting
  f2fs: stop using writeback internals for dirty_exceeded checks
  gfs2: stop using writeback internals for dirty_exceeded check
  nfs: stop using writeback internals for WB_WRITEBACK accounting

 fs/f2fs/node.c              |  4 ++--
 fs/f2fs/segment.h           |  2 +-
 fs/gfs2/super.c             |  2 +-
 fs/nfs/internal.h           |  2 +-
 fs/nfs/write.c              |  3 +--
 include/linux/backing-dev.h | 13 +++++++++++++
 6 files changed, 19 insertions(+), 7 deletions(-)


base-commit: 05f7e89ab9731565d8a62e3b5d1ec206485eeb0b
-- 
2.25.1
Re: [PATCH v2 0/4] Avoid filesystem references to writeback internals
Posted by Christian Brauner 1 month, 2 weeks ago
On Fri, 13 Feb 2026 11:16:30 +0530, Kundan Kumar wrote:
> The series introduces writeback helper APIs and converts f2fs, gfs2
> and nfs to stop accessing writeback internals directly.
> 
> As suggested by Christoph [1], filesystem code that directly accesses
> writeback internals is split out:
> [1] https://lore.kernel.org/all/20251015072912.GA11294@lst.de/
> 
> [...]

Applied to the master branch of the vfs/vfs.git tree.
Patches in the master branch should appear in linux-next soon.

Please report any outstanding bugs that were missed during review in a
new review to the original patch series allowing us to drop it.

It's encouraged to provide Acked-bys and Reviewed-bys even though the
patch has now been applied. If possible patch trailers will be updated.

Note that commit hashes shown below are subject to change due to rebase,
trailer updates or similar. If in doubt, please check the listed branch.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git
branch: master

[1/4] writeback: prep helpers for dirty-limit and writeback accounting
      https://git.kernel.org/vfs/vfs/c/a235d3bcd28b
[2/4] f2fs: stop using writeback internals for dirty_exceeded checks
      https://git.kernel.org/vfs/vfs/c/07043a6ebeb2
[3/4] gfs2: stop using writeback internals for dirty_exceeded check
      https://git.kernel.org/vfs/vfs/c/8cab8dc0e141
[4/4] nfs: stop using writeback internals for WB_WRITEBACK accounting
      https://git.kernel.org/vfs/vfs/c/fd15b9c6ec8a
Re: [PATCH v2 0/4] Avoid filesystem references to writeback internals
Posted by Christoph Hellwig 1 month, 2 weeks ago
Looks good:

Reviewed-by: Christoph Hellwig <hch@lst.de>