xfs: fix unwind handling during xfs_mount_sysfs_init()

The goto for failing to setup /error/metadata jumps to the wrong place
in xfs_mount_sysfs_init(). Fix it.

Fixes: a9a7b9e868 ("xfs: add support for lazy direct read bounce buffering")
Signed-off-by: Wilfred Mallawa <wilfred.mallawa@wdc.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
This commit is contained in:
Wilfred Mallawa 2026-10-26 15:34:55 +10:00 committed by Carlos Maiolino
parent bde0010631
commit 7e31d6dd34

View File

@ -906,7 +906,7 @@ xfs_mount_sysfs_init(
"metadata", &mp->m_error_meta_kobj,
xfs_error_meta_init);
if (error)
goto out_remove_csum_dir;
goto out_remove_error_dir;
return 0;