]> git.ipfire.org Git - thirdparty/linux.git/commit
xfs: drop the RTG reference later in xfs_ioc_rtgroup_geometry
authorChristoph Hellwig <hch@lst.de>
Wed, 27 May 2026 12:39:28 +0000 (14:39 +0200)
committerCarlos Maiolino <cem@kernel.org>
Sat, 30 May 2026 06:26:18 +0000 (08:26 +0200)
commitc316bb56bf4dda9bd3456a163c3a3856ca1b9498
tree508c9861b258419b2edf369e7231405c44662dac
parentc3e073894379532c00cca7ba5762e18fafe29da8
xfs: drop the RTG reference later in xfs_ioc_rtgroup_geometry

Keep the rtgroup reference until after reporting the write pointer, as
that uses it.  Right now this is not a major issue as we don't support
shrinking file systems in a way that makes RTGs go away, but let's stick
to the proper reference counting to prepare for that.

Fixes: c6ce65cb17aa ("xfs: add write pointer to xfs_rtgroup_geometry")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Reviewed-by: Wilfred Mallawa <wilfred.mallawa@wdc.com>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/xfs_ioctl.c