]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: support RT inodes in xfs_mod_delalloc
authorChristoph Hellwig <hch@lst.de>
Mon, 29 Jul 2024 23:22:42 +0000 (16:22 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 30 Jul 2024 00:01:01 +0000 (17:01 -0700)
commitac315eafcb5f5fd3d8368c4b4fffffd99488d30c
tree7b3e709e50f96c6a7111ed2b2ff185ceed778be8
parent15f2811c84bd2344f3ae59a04f0a55a6ce84a173
xfs: support RT inodes in xfs_mod_delalloc

Source kernel commit: 7099bd0f243fa7511de6e95b0b8807ba7d3e5204

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>
libxfs/libxfs_priv.h
libxfs/xfs_bmap.c