xfs: support RT inodes in xfs_mod_delalloc
authorChristoph Hellwig <hch@lst.de>
Mon, 22 Apr 2024 11:20:15 +0000 (13:20 +0200)
committerChandan Babu R <chandanbabu@kernel.org>
Mon, 22 Apr 2024 12:30:48 +0000 (18:00 +0530)
commit7099bd0f243fa7511de6e95b0b8807ba7d3e5204
treefbcabbadaf67111f352e1a4ec13720685b33a059
parent7e77d57a1fea5f6bfe166210385ba9f227a606d1
xfs: support RT inodes in xfs_mod_delalloc

To prepare for re-enabling delalloc on RT devices, track the data blocks
(which use the RT device when the inode sits on it) and the indirect
blocks (which don't) separately to xfs_mod_delalloc, and add a new
percpu counter to also track the RT delalloc blocks.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
fs/xfs/libxfs/xfs_bmap.c
fs/xfs/scrub/fscounters.c
fs/xfs/scrub/fscounters.h
fs/xfs/scrub/fscounters_repair.c
fs/xfs/xfs_mount.c
fs/xfs/xfs_mount.h
fs/xfs/xfs_super.c