mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-30 11:03:07 -04:00
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: ae897e0bed ("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>
This commit is contained in:
committed by
Carlos Maiolino
parent
59c462b0f5
commit
b7e53968cb
@@ -737,7 +737,7 @@ xfs_rtginode_ensure(
|
||||
xfs_trans_cancel(tp);
|
||||
|
||||
if (error != -ENOENT)
|
||||
return 0;
|
||||
return error;
|
||||
return xfs_rtginode_create(rtg, type, true);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user