]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
xfs: propagate errors from xfs_rtginode_load
authorGuanghui Yang <3497809730@qq.com>
Sun, 12 Jul 2026 03:42:56 +0000 (03:42 +0000)
committerCarlos Maiolino <cem@kernel.org>
Mon, 20 Jul 2026 09:17:32 +0000 (11:17 +0200)
commitb7e53968cb8882c2d276429ea8550848a4940874
tree5bd8e4d7e560b10a6c68674347197cc801a4e945
parent59c462b0f5cfa107794228051724b34ae9334168
xfs: propagate errors from xfs_rtginode_load

xfs_rtginode_ensure() treats every xfs_rtginode_load() error other than
-ENOENT as success.  This can leave the realtime group inode unset after an
I/O, allocation, or corruption error.  Growfs then continues as though the
inode had been loaded.

Only -ENOENT means that the inode needs to be created.  Return all other
errors to the growfs caller.

Fixes: ae897e0bed0f ("xfs: support creating per-RTG files in growfs")
Cc: stable@vger.kernel.org
Signed-off-by: Guanghui Yang <3497809730@qq.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/xfs_rtalloc.c